Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001314, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.963/0.963, allocations: 135.2 MB / 426.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003336/0.0003338, allocations: 8 kB / 0.5069 GB, free: 5.156 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1908/0.1912, allocations: 82.32 MB / 0.5873 GB, free: 3.023 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.004973/0.1962, allocations: 3.376 MB / 0.5906 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003151/0.1994, allocations: 1.239 MB / 0.5918 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008064/0.2003, allocations: 23.88 kB / 0.5918 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002875/0.2006, allocations: 63.34 kB / 0.5919 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001039/0.2016, allocations: 219.3 kB / 0.5921 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009296/0.2026, allocations: 302 kB / 0.5924 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001154/0.2037, allocations: 0.59 MB / 0.5929 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000554/0.2043, allocations: 307.4 kB / 0.5932 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004253/0.2047, allocations: 234.9 kB / 0.5935 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002969/0.205, allocations: 242.7 kB / 0.5937 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.002e-05/0.2051, allocations: 24 kB / 0.5937 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.77e-05/0.2052, allocations: 23.94 kB / 0.5937 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.551e-05/0.2053, allocations: 91.55 kB / 0.5938 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.2054, allocations: 157.3 kB / 0.594 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006629/0.2061, allocations: 0.8066 MB / 0.5948 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.2061, allocations: 0 / 0.5948 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2061, allocations: 0 / 0.5948 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.197e-05/0.2061, allocations: 0 / 0.5948 GB, free: 11.31 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001552/0.2077, allocations: 0.96 MB / 0.5957 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.2077, allocations: 12.03 kB / 0.5957 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.2078, allocations: 98.52 kB / 0.5958 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.208, allocations: 86.95 kB / 0.5959 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007476/0.2087, allocations: 0.533 MB / 0.5964 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.823e-05/0.2088, allocations: 49.25 kB / 0.5965 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.068e-05/0.2089, allocations: 56 kB / 0.5965 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009689/0.2098, allocations: 0.6037 MB / 0.5971 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.2099, allocations: 3.906 kB / 0.5971 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.033e-05/0.2099, allocations: 27.94 kB / 0.5971 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.21, allocations: 12 kB / 0.5971 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008949/0.2109, allocations: 465 kB / 0.5976 GB, free: 8.289 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.2134, allocations: 2.024 MB / 0.5996 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008526/0.2143, allocations: 450.4 kB / 0.6 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.508e-05/0.2144, allocations: 8.422 kB / 0.6 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005368/0.2149, allocations: 273.2 kB / 0.6003 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.104e-06/0.2149, allocations: 0 / 0.6003 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001185/0.2161, allocations: 0.5967 MB / 0.6008 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.2162, allocations: 59.84 kB / 0.6009 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004392/0.2166, allocations: 442 kB / 0.6013 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.2167, allocations: 37.7 kB / 0.6014 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002275/0.2169, allocations: 320.3 kB / 0.6017 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.217, allocations: 169.5 kB / 0.6018 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.351e-05/0.217, allocations: 12 kB / 0.6018 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2172, allocations: 362.8 kB / 0.6022 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.2176, allocations: 173 kB / 0.6023 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.218, allocations: 253.8 kB / 0.6026 GB, free: 3 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.2184, allocations: 219.9 kB / 0.6028 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2184, allocations: 0 / 0.6028 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009332/0.2193, allocations: 0.5702 MB / 0.6033 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/0.2194, allocations: 33.69 kB / 0.6034 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.2194, allocations: 8.25 kB / 0.6034 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.2194, allocations: 7.953 kB / 0.6034 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004715/0.2199, allocations: 119.8 kB / 0.6035 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.2199, allocations: 4 kB / 0.6035 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003315/0.2202, allocations: 71.5 kB / 0.6036 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.517e-05/0.2203, allocations: 20 kB / 0.6036 GB, free: 1.934 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002501/0.2205, allocations: 210 kB / 0.6038 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.2206, allocations: 55.33 kB / 0.6039 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001198/0.2207, allocations: 61.59 kB / 0.6039 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.2207, allocations: 4 kB / 0.6039 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.2208, allocations: 7.891 kB / 0.6039 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.2208, allocations: 3.984 kB / 0.6039 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/0.2224, allocations: 1.193 MB / 0.6051 GB, free: 352 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2224, allocations: 0 / 0.6051 GB, free: 352 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004414/0.2228, allocations: 103.9 kB / 0.6052 GB, free: 248 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.2229, allocations: 4 kB / 0.6052 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.2229, allocations: 15.95 kB / 0.6052 GB, free: 228 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2229, allocations: 0 / 0.6052 GB, free: 228 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2229, allocations: 3.984 kB / 0.6052 GB, free: 224 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2878/0.5107, allocations: 0.7685 MB / 0.606 GB, free: 48.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002474/0.511, allocations: 163.6 kB / 0.6061 GB, free: 48.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.548e-05/0.5111, allocations: 15.55 kB / 0.6061 GB, free: 48.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003314/0.5115, allocations: 40.72 kB / 0.6062 GB, free: 48.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.5116, allocations: 33.12 kB / 0.6062 GB, free: 48.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.72e-05/0.5116, allocations: 14.06 kB / 0.6062 GB, free: 48.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000331/0.5119, allocations: 309.5 kB / 0.6065 GB, free: 48.49 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.11e-07/0.5119, allocations: 0 / 0.6065 GB, free: 48.49 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004872/0.5124, allocations: 137.1 kB / 0.6066 GB, free: 48.49 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001343/0.5138, allocations: 1.328 MB / 0.6079 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008187/0.5146, allocations: 490.8 kB / 0.6084 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5146, allocations: 0 / 0.6084 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003462/0.515, allocations: 226.8 kB / 0.6086 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006069/0.5156, allocations: 128.6 kB / 0.6088 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00505/0.5207, allocations: 4.76 MB / 0.6134 GB, free: 45.21 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.5209, allocations: 0.8987 MB / 0.6143 GB, free: 44.51 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00024/0.5212, allocations: 66.58 kB / 0.6143 GB, free: 44.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/0.5214, allocations: 220 kB / 0.6145 GB, free: 44.49 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.5214, allocations: 0 / 0.6145 GB, free: 44.49 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.055/3.577, allocations: 10.61 MB / 0.6249 GB, free: 43.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001588/3.577, allocations: 177.5 kB / 0.6251 GB, free: 43.55 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.57/7.148, allocations: 4 kB / 0.6251 GB, free: 43.54 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) Environment - environmentSimulation: