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.001255/0.001255, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001345/0.001345, allocations: 190.8 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7143/0.7143, allocations: 132.2 MB / 422.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 63.39 kB / 0.5014 GB, free: 9.004 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.157, allocations: 80.2 MB / 0.5797 GB, free: 9.023 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005082/0.1621, allocations: 4.101 MB / 0.5837 GB, free: 4.895 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.1642, allocations: 1.29 MB / 0.5849 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003449/0.1646, allocations: 23.88 kB / 0.585 GB, free: 3.574 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003125/0.1649, allocations: 91.22 kB / 0.585 GB, free: 3.484 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003066/0.1652, allocations: 142.8 kB / 0.5852 GB, free: 3.344 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008015/0.166, allocations: 385.6 kB / 0.5856 GB, free: 2.977 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008859/0.1669, allocations: 0.9671 MB / 0.5865 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000586/0.1675, allocations: 450.1 kB / 0.5869 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.1679, allocations: 326.7 kB / 0.5872 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002957/0.1682, allocations: 342.3 kB / 0.5876 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.1683, allocations: 92 kB / 0.5877 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.374e-05/0.1684, allocations: 91.94 kB / 0.5877 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.1685, allocations: 175.5 kB / 0.5879 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002796/0.1688, allocations: 394 kB / 0.5883 GB, free: 156 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007848/0.1696, allocations: 1.04 MB / 0.5893 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1696, allocations: 0 / 0.5893 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1696, allocations: 4 kB / 0.5893 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.1696, allocations: 0 / 0.5893 GB, free: 15.11 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.00158/0.1712, allocations: 1.073 MB / 0.5904 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.1713, allocations: 8.031 kB / 0.5904 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.897e-05/0.1714, allocations: 102.6 kB / 0.5905 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.1715, allocations: 84 kB / 0.5905 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007171/0.1722, allocations: 0.5573 MB / 0.5911 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.187e-05/0.1723, allocations: 41.69 kB / 0.5911 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.441e-05/0.1724, allocations: 68.27 kB / 0.5912 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009947/0.1734, allocations: 0.6037 MB / 0.5918 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.1734, allocations: 8 kB / 0.5918 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.868e-05/0.1735, allocations: 23.98 kB / 0.5918 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.1735, allocations: 12 kB / 0.5918 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008678/0.1743, allocations: 461 kB / 0.5923 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002506/0.1769, allocations: 2.008 MB / 0.5942 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008388/0.1777, allocations: 442.5 kB / 0.5946 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004029/0.1781, allocations: 242.1 kB / 0.5949 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.1782, allocations: 4.438 kB / 0.5949 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005456/0.1787, allocations: 261.3 kB / 0.5951 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 3.536e-06/0.1787, allocations: 0 / 0.5951 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001175/0.1799, allocations: 0.5882 MB / 0.5957 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.18, allocations: 55.84 kB / 0.5958 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004282/0.1804, allocations: 454 kB / 0.5962 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.512e-05/0.1805, allocations: 33.7 kB / 0.5962 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.1807, allocations: 324.3 kB / 0.5965 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.1808, allocations: 161.6 kB / 0.5967 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.1809, allocations: 98.16 kB / 0.5968 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1811, allocations: 366.8 kB / 0.5971 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/0.1814, allocations: 165 kB / 0.5973 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003885/0.1818, allocations: 257.8 kB / 0.5975 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000719/0.1826, allocations: 451.9 kB / 0.598 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1826, allocations: 4 kB / 0.598 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009299/0.1835, allocations: 0.5623 MB / 0.5985 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.1835, allocations: 29.7 kB / 0.5985 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1836, allocations: 4 kB / 0.5985 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1836, allocations: 11.92 kB / 0.5986 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004489/0.184, allocations: 111.8 kB / 0.5987 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.1841, allocations: 11.98 kB / 0.5987 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.1844, allocations: 63.75 kB / 0.5987 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.1844, allocations: 20 kB / 0.5988 GB, free: 5.07 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000229/0.1847, allocations: 210.5 kB / 0.599 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.573e-05/0.1847, allocations: 59.28 kB / 0.599 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.1849, allocations: 65.58 kB / 0.5991 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.1849, allocations: 4 kB / 0.5991 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1849, allocations: 0 / 0.5991 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1849, allocations: 3.984 kB / 0.5991 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001545/0.1865, allocations: 1.174 MB / 0.6002 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1865, allocations: 0 / 0.6002 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000445/0.1869, allocations: 99.83 kB / 0.6003 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1869, allocations: 4 kB / 0.6003 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.187, allocations: 19.98 kB / 0.6003 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.187, allocations: 0 / 0.6003 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.187, allocations: 0 / 0.6003 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.1882, allocations: 0.7601 MB / 0.6011 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.1884, allocations: 168.4 kB / 0.6012 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.716e-05/0.1884, allocations: 8 kB / 0.6013 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/0.1887, allocations: 31.91 kB / 0.6013 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.726e-05/0.1888, allocations: 36.39 kB / 0.6013 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/0.1889, allocations: 12 kB / 0.6013 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002889/0.1892, allocations: 314.9 kB / 0.6016 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.633e-06/0.1892, allocations: 0 / 0.6016 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00041/0.1896, allocations: 147.4 kB / 0.6018 GB, free: 1.879 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001454/0.1911, allocations: 1.309 MB / 0.603 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000989/0.1921, allocations: 0.4936 MB / 0.6035 GB, free: 40 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.1921, allocations: 4 kB / 0.6035 GB, free: 36 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.2268/0.4189, allocations: 219 kB / 0.6037 GB, free: 56.06 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000767/0.4197, allocations: 150.6 kB / 0.6039 GB, free: 56.06 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00576/0.4255, allocations: 5.134 MB / 0.6089 GB, free: 53.47 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.4257, allocations: 0.8872 MB / 0.6098 GB, free: 52.77 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002285/0.4259, allocations: 61.41 kB / 0.6098 GB, free: 52.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000219/0.4262, allocations: 217.9 kB / 0.61 GB, free: 52.59 MB / 0.4981 GB Notification: Performance of SimCode: time 5.21e-07/0.4262, allocations: 0 / 0.61 GB, free: 52.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.849/2.275, allocations: 10.94 MB / 0.6207 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/2.275, allocations: 186.2 kB / 0.6209 GB, free: 51.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.204/4.479, allocations: 0 / 0.6209 GB, free: 51.54 MB / 0.4981 GB (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/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)