Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_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.005384/0.005384, allocations: 103.6 kB / 15.73 MB, free: 6.047 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.001232/0.001232, allocations: 196.9 kB / 16.67 MB, free: 5.977 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002077/0.002077, allocations: 274.9 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9388/0.9388, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 99.84 kB / 0.6809 GB, free: 64 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1639, allocations: 86.97 MB / 0.7659 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005676/0.1696, allocations: 4.123 MB / 0.7699 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002676/0.1723, allocations: 1.325 MB / 0.7712 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006436/0.173, allocations: 23.94 kB / 0.7712 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004596/0.1735, allocations: 126.7 kB / 0.7713 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005956/0.1741, allocations: 174.4 kB / 0.7715 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1752, allocations: 421.5 kB / 0.7719 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001157/0.1763, allocations: 0.9593 MB / 0.7728 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007012/0.177, allocations: 466.1 kB / 0.7733 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000474/0.1775, allocations: 330.8 kB / 0.7736 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004897/0.178, allocations: 342.3 kB / 0.7739 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.1782, allocations: 88 kB / 0.774 GB, free: 0.6211 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.1783, allocations: 92 kB / 0.7741 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.1785, allocations: 179.4 kB / 0.7743 GB, free: 364 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.3374/0.516, allocations: 388.7 kB / 0.7746 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001379/0.5174, allocations: 1.059 MB / 0.7757 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.5174, allocations: 0 / 0.7757 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.683e-06/0.5174, allocations: 0.6875 kB / 0.7757 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.676e-05/0.5174, allocations: 0.5625 kB / 0.7757 GB, free: 9.738 MB / 0.5606 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.001798/0.5192, allocations: 1.078 MB / 0.7767 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.5193, allocations: 8.281 kB / 0.7767 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001112/0.5194, allocations: 104.8 kB / 0.7768 GB, free: 9.062 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.5195, allocations: 81.72 kB / 0.7769 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008605/0.5204, allocations: 0.5662 MB / 0.7775 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.673e-05/0.5205, allocations: 42.97 kB / 0.7775 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-05/0.5206, allocations: 57.89 kB / 0.7776 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.5217, allocations: 0.6103 MB / 0.7782 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.5217, allocations: 3.625 kB / 0.7782 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.558e-05/0.5218, allocations: 27.62 kB / 0.7782 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.5218, allocations: 14.34 kB / 0.7782 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009555/0.5228, allocations: 460.1 kB / 0.7786 GB, free: 8.648 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.5253, allocations: 1.991 MB / 0.7806 GB, free: 8 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008661/0.5262, allocations: 443.2 kB / 0.781 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004122/0.5266, allocations: 235.8 kB / 0.7812 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.5266, allocations: 7.312 kB / 0.7812 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004986/0.5271, allocations: 271.1 kB / 0.7815 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=49): time 2.455e-06/0.5272, allocations: 1.781 kB / 0.7815 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of matching and sorting (n=49): time 0.001229/0.5284, allocations: 0.5871 MB / 0.7821 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.5284, allocations: 57.03 kB / 0.7821 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004426/0.5289, allocations: 444 kB / 0.7825 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.5289, allocations: 32.7 kB / 0.7826 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.5291, allocations: 325.2 kB / 0.7829 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.261e-05/0.5292, allocations: 166.3 kB / 0.783 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.5293, allocations: 89.58 kB / 0.7831 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.616e-05/0.5294, allocations: 370.5 kB / 0.7835 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.5298, allocations: 166.6 kB / 0.7836 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004035/0.5302, allocations: 246.8 kB / 0.7839 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000746/0.531, allocations: 454 kB / 0.7843 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.531, allocations: 2.625 kB / 0.7843 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001008/0.532, allocations: 0.5633 MB / 0.7849 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.423e-05/0.532, allocations: 37.47 kB / 0.7849 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.5321, allocations: 2.375 kB / 0.7849 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.5321, allocations: 5.547 kB / 0.7849 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005035/0.5326, allocations: 120.7 kB / 0.785 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.5326, allocations: 7.281 kB / 0.785 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.533, allocations: 55.12 kB / 0.7851 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.533, allocations: 23.73 kB / 0.7851 GB, free: 5.617 MB / 0.5606 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.0002168/0.5332, allocations: 211.6 kB / 0.7853 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.105e-05/0.5333, allocations: 57.88 kB / 0.7854 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001231/0.5334, allocations: 61.7 kB / 0.7854 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.5334, allocations: 5.469 kB / 0.7854 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.5335, allocations: 2.938 kB / 0.7854 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.5335, allocations: 2.391 kB / 0.7854 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.5351, allocations: 1.183 MB / 0.7866 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.5351, allocations: 3.844 kB / 0.7866 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004602/0.5356, allocations: 93.45 kB / 0.7867 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.5356, allocations: 4.016 kB / 0.7867 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.5356, allocations: 11.61 kB / 0.7867 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.5356, allocations: 3.125 kB / 0.7867 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5356, allocations: 4.703 kB / 0.7867 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.5368, allocations: 0.7556 MB / 0.7874 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.537, allocations: 173.6 kB / 0.7876 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.322e-05/0.537, allocations: 12.62 kB / 0.7876 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.5373, allocations: 26.58 kB / 0.7876 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.503e-05/0.5374, allocations: 40.44 kB / 0.7877 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.5375, allocations: 13.02 kB / 0.7877 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002966/0.5378, allocations: 309.6 kB / 0.788 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5378, allocations: 0 / 0.788 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004399/0.5382, allocations: 139.5 kB / 0.7881 GB, free: 3.93 MB / 0.5606 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.001319/0.5395, allocations: 1.317 MB / 0.7894 GB, free: 3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008442/0.5404, allocations: 489.5 kB / 0.7899 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5404, allocations: 0 / 0.7899 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003848/0.5408, allocations: 218.6 kB / 0.7901 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007539/0.5416, allocations: 153.7 kB / 0.7902 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006421/0.548, allocations: 4.779 MB / 0.7949 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004578/0.5485, allocations: 0.8875 MB / 0.7958 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003005/0.5488, allocations: 68.42 kB / 0.7958 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/0.5491, allocations: 218.1 kB / 0.796 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of SimCode: time 6.02e-07/0.5491, allocations: 0 / 0.796 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03616/0.5852, allocations: 11.5 MB / 0.8073 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/8.668, allocations: 8.312 kB / 0.8073 GB, free: 13.09 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)