Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_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.0008423/0.0008425, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0009129/0.0009131, allocations: 172.7 kB / 15.95 MB, free: 208 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.399/1.399, allocations: 223.2 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7959/0.7959, allocations: 132.3 MB / 423.4 MB, free: 2.066 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003985/0.0003985, allocations: 8 kB / 0.5035 GB, free: 4.168 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.615/0.6154, allocations: 81.57 MB / 0.5831 GB, free: 4 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.004366/0.6198, allocations: 3.506 MB / 0.5866 GB, free: 1.461 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003007/0.6229, allocations: 1.251 MB / 0.5878 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006396/0.6236, allocations: 23.69 kB / 0.5878 GB, free: 0.543 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003292/0.6239, allocations: 87 kB / 0.5879 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004054/0.6243, allocations: 138 kB / 0.588 GB, free: 404 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009969/0.6253, allocations: 289.7 kB / 0.5883 GB, free: 252 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.6266, allocations: 0.8327 MB / 0.5891 GB, free: 15.8 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006544/0.6272, allocations: 295.8 kB / 0.5894 GB, free: 15.67 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004466/0.6277, allocations: 231 kB / 0.5896 GB, free: 15.56 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003708/0.6281, allocations: 236.3 kB / 0.5898 GB, free: 15.45 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.411e-05/0.6281, allocations: 22.75 kB / 0.5899 GB, free: 15.45 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.038e-05/0.6282, allocations: 23.09 kB / 0.5899 GB, free: 15.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.6284, allocations: 98.45 kB / 0.59 GB, free: 15.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.6285, allocations: 157.8 kB / 0.5901 GB, free: 15.28 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001215/0.6298, allocations: 0.8038 MB / 0.5909 GB, free: 15.1 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.6298, allocations: 5.297 kB / 0.5909 GB, free: 15.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.6298, allocations: 1.312 kB / 0.5909 GB, free: 15.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.6298, allocations: 0 / 0.5909 GB, free: 15.09 MB / 446.1 MB 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.002098/0.6319, allocations: 0.9567 MB / 0.5918 GB, free: 14.42 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.632, allocations: 9.125 kB / 0.5919 GB, free: 14.42 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001762/0.6322, allocations: 103.7 kB / 0.592 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.6324, allocations: 86.02 kB / 0.592 GB, free: 14.3 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.6334, allocations: 0.5383 MB / 0.5926 GB, free: 13.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.14e-05/0.6335, allocations: 48.78 kB / 0.5926 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.6336, allocations: 59.97 kB / 0.5927 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.6351, allocations: 0.6003 MB / 0.5933 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.6351, allocations: 9.344 kB / 0.5933 GB, free: 13.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.431e-05/0.6352, allocations: 25.73 kB / 0.5933 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.369e-05/0.6352, allocations: 13.72 kB / 0.5933 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.6364, allocations: 467.6 kB / 0.5937 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003775/0.6402, allocations: 2.022 MB / 0.5957 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.6413, allocations: 451.5 kB / 0.5962 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004919/0.6418, allocations: 245.8 kB / 0.5964 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.876e-05/0.6419, allocations: 9.516 kB / 0.5964 GB, free: 11.83 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006272/0.6425, allocations: 264.9 kB / 0.5966 GB, free: 11.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 3.778e-06/0.6425, allocations: 0 / 0.5966 GB, free: 11.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001398/0.6439, allocations: 0.5999 MB / 0.5972 GB, free: 11.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.644, allocations: 60.97 kB / 0.5973 GB, free: 11.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006174/0.6446, allocations: 436.3 kB / 0.5977 GB, free: 11.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.972e-05/0.6447, allocations: 36.17 kB / 0.5977 GB, free: 10.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.645, allocations: 324.4 kB / 0.5981 GB, free: 10.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.6451, allocations: 169.8 kB / 0.5982 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/0.6452, allocations: 10.19 kB / 0.5982 GB, free: 10.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.6454, allocations: 363.9 kB / 0.5986 GB, free: 10.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/0.6458, allocations: 174.3 kB / 0.5987 GB, free: 10.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004561/0.6462, allocations: 257 kB / 0.599 GB, free: 9.926 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004697/0.6467, allocations: 228.8 kB / 0.5992 GB, free: 9.793 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.6467, allocations: 1.406 kB / 0.5992 GB, free: 9.793 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001118/0.6479, allocations: 0.5633 MB / 0.5998 GB, free: 9.488 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.039e-05/0.6479, allocations: 37.42 kB / 0.5998 GB, free: 9.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.6479, allocations: 5.359 kB / 0.5998 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.648, allocations: 5.031 kB / 0.5998 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005202/0.6485, allocations: 116.3 kB / 0.5999 GB, free: 9.422 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.6485, allocations: 4.531 kB / 0.5999 GB, free: 9.422 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000395/0.6489, allocations: 71.12 kB / 0.6 GB, free: 9.379 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.649, allocations: 18.5 kB / 0.6 GB, free: 9.375 MB / 446.1 MB 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.0003683/0.6493, allocations: 209.5 kB / 0.6002 GB, free: 9.195 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.343e-05/0.6494, allocations: 54.03 kB / 0.6002 GB, free: 9.168 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.6496, allocations: 66.16 kB / 0.6003 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.122e-05/0.6496, allocations: 8.953 kB / 0.6003 GB, free: 9.113 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.6496, allocations: 0 / 0.6003 GB, free: 9.113 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.6497, allocations: 9.188 kB / 0.6003 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002028/0.6517, allocations: 1.184 MB / 0.6015 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.6517, allocations: 0 / 0.6015 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004745/0.6522, allocations: 103.3 kB / 0.6016 GB, free: 8.219 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.847e-06/0.6522, allocations: 5.328 kB / 0.6016 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/0.6522, allocations: 10.38 kB / 0.6016 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.339e-06/0.6523, allocations: 2.375 kB / 0.6016 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6523, allocations: 0 / 0.6016 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001424/0.6537, allocations: 0.7699 MB / 0.6024 GB, free: 7.754 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.654, allocations: 167.2 kB / 0.6025 GB, free: 7.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.801e-05/0.6541, allocations: 22.97 kB / 0.6025 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.6544, allocations: 30.14 kB / 0.6026 GB, free: 7.559 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.6545, allocations: 35.88 kB / 0.6026 GB, free: 7.539 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.6545, allocations: 13.84 kB / 0.6026 GB, free: 7.535 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004477/0.655, allocations: 315 kB / 0.6029 GB, free: 7.336 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.655, allocations: 3.938 kB / 0.6029 GB, free: 7.332 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000563/0.6555, allocations: 142.5 kB / 0.6031 GB, free: 7.293 MB / 446.1 MB 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.001835/0.6574, allocations: 1.317 MB / 0.6043 GB, free: 6.305 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.6584, allocations: 495.9 kB / 0.6048 GB, free: 6.055 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.6585, allocations: 0.5 kB / 0.6048 GB, free: 6.055 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000464/0.6589, allocations: 222.6 kB / 0.605 GB, free: 5.961 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008099/0.6597, allocations: 142.8 kB / 0.6052 GB, free: 5.883 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007608/0.6674, allocations: 3.589 MB / 0.6087 GB, free: 3.539 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006144/0.668, allocations: 0.8889 MB / 0.6095 GB, free: 2.758 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003933/0.6684, allocations: 68.27 kB / 0.6096 GB, free: 2.723 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/0.6688, allocations: 218 kB / 0.6098 GB, free: 2.539 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6688, allocations: 0 / 0.6098 GB, free: 2.539 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02689/0.6957, allocations: 10.65 MB / 0.6202 GB, free: 10.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/0.6959, allocations: 176.4 kB / 0.6204 GB, free: 10.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.124/2.82, allocations: 0 / 0.6204 GB, free: 10.06 MB / 462.1 MB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) Environment - environmentSimulation: