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.005283/0.005283, allocations: 100.3 kB / 15.73 MB, free: 6.008 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.001207/0.001207, allocations: 190.4 kB / 16.67 MB, free: 5.949 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002218/0.002218, allocations: 298.3 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9708/0.9708, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 91.98 kB / 0.6809 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.147, allocations: 86.98 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005566/0.1526, allocations: 4.125 MB / 0.7699 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002954/0.1556, allocations: 1.313 MB / 0.7712 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006361/0.1563, allocations: 23.88 kB / 0.7712 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004602/0.1567, allocations: 126.7 kB / 0.7713 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005677/0.1574, allocations: 186.4 kB / 0.7715 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009611/0.1583, allocations: 421.5 kB / 0.7719 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001115/0.1595, allocations: 0.9593 MB / 0.7728 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006504/0.1601, allocations: 466.1 kB / 0.7733 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003922/0.1605, allocations: 322.8 kB / 0.7736 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004334/0.161, allocations: 338.3 kB / 0.7739 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.1611, allocations: 92 kB / 0.774 GB, free: 0.582 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.1613, allocations: 88 kB / 0.7741 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.1615, allocations: 183.4 kB / 0.7743 GB, free: 324 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.3007/0.4622, allocations: 385.1 kB / 0.7746 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002187/0.4645, allocations: 1.059 MB / 0.7757 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4645, allocations: 0.875 kB / 0.7757 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.775e-06/0.4645, allocations: 0 / 0.7757 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.172e-05/0.4645, allocations: 0.6562 kB / 0.7757 GB, free: 10.21 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.002127/0.4667, allocations: 1.082 MB / 0.7767 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.4667, allocations: 11.59 kB / 0.7767 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001238/0.4668, allocations: 107.8 kB / 0.7768 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.467, allocations: 83.44 kB / 0.7769 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000972/0.468, allocations: 0.5609 MB / 0.7775 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.4681, allocations: 42.94 kB / 0.7775 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.4682, allocations: 58.34 kB / 0.7776 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.4694, allocations: 0.613 MB / 0.7782 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.4694, allocations: 0 / 0.7782 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.19e-05/0.4695, allocations: 23.81 kB / 0.7782 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.4695, allocations: 14.12 kB / 0.7782 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.4706, allocations: 460.8 kB / 0.7786 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.4733, allocations: 1.992 MB / 0.7806 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009255/0.4743, allocations: 451.8 kB / 0.781 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004547/0.4747, allocations: 235.1 kB / 0.7812 GB, free: 8.035 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.4748, allocations: 7.531 kB / 0.7812 GB, free: 8.035 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005361/0.4753, allocations: 273.9 kB / 0.7815 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/0.4753, allocations: 0 / 0.7815 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of matching and sorting (n=49): time 0.001355/0.4767, allocations: 0.5776 MB / 0.7821 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.4767, allocations: 57.47 kB / 0.7821 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005811/0.4773, allocations: 447 kB / 0.7825 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.026e-05/0.4774, allocations: 37.39 kB / 0.7826 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/0.4776, allocations: 319.8 kB / 0.7829 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.4777, allocations: 171.6 kB / 0.7831 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.4779, allocations: 93.03 kB / 0.7831 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.478, allocations: 364.7 kB / 0.7835 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000414/0.4784, allocations: 167.7 kB / 0.7836 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004498/0.4789, allocations: 250.1 kB / 0.7839 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008672/0.4798, allocations: 450.7 kB / 0.7843 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4798, allocations: 0.8125 kB / 0.7843 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001191/0.481, allocations: 0.567 MB / 0.7849 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.481, allocations: 37.31 kB / 0.7849 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.481, allocations: 2.125 kB / 0.7849 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.599e-05/0.4811, allocations: 6.125 kB / 0.7849 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005416/0.4816, allocations: 115.1 kB / 0.785 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.4816, allocations: 5.812 kB / 0.785 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003478/0.482, allocations: 56.28 kB / 0.7851 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.482, allocations: 19.05 kB / 0.7851 GB, free: 5.777 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.0002254/0.4823, allocations: 211.3 kB / 0.7853 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.346e-05/0.4824, allocations: 59.03 kB / 0.7854 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001451/0.4825, allocations: 65.47 kB / 0.7854 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.768e-06/0.4825, allocations: 10.94 kB / 0.7854 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.4825, allocations: 4.5 kB / 0.7854 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.4825, allocations: 3.562 kB / 0.7854 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.4841, allocations: 1.174 MB / 0.7866 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4841, allocations: 0 / 0.7866 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004649/0.4846, allocations: 102.5 kB / 0.7867 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.4846, allocations: 2.188 kB / 0.7867 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.4847, allocations: 15.16 kB / 0.7867 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4847, allocations: 0 / 0.7867 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4847, allocations: 2.375 kB / 0.7867 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.4859, allocations: 0.7682 MB / 0.7875 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001545/0.4861, allocations: 170.6 kB / 0.7876 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.4861, allocations: 8.391 kB / 0.7876 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/0.4864, allocations: 24.89 kB / 0.7876 GB, free: 4.285 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.346e-05/0.4865, allocations: 33.19 kB / 0.7877 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.4866, allocations: 16.34 kB / 0.7877 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002885/0.4869, allocations: 307.3 kB / 0.788 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4869, allocations: 4 kB / 0.788 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004342/0.4873, allocations: 144.1 kB / 0.7881 GB, free: 4.078 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.001333/0.4886, allocations: 1.319 MB / 0.7894 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000851/0.4895, allocations: 479 kB / 0.7899 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4895, allocations: 1.125 kB / 0.7899 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003949/0.4899, allocations: 215.7 kB / 0.7901 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007938/0.4907, allocations: 153.9 kB / 0.7902 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006377/0.4971, allocations: 4.78 MB / 0.7949 GB, free: 72 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.4976, allocations: 0.887 MB / 0.7958 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003009/0.4979, allocations: 61.72 kB / 0.7958 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003/0.4982, allocations: 223.8 kB / 0.796 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of SimCode: time 6.71e-07/0.4982, allocations: 7.312 kB / 0.796 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0328/0.531, allocations: 11.32 MB / 0.8071 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.217/8.748, allocations: 7.219 kB / 0.8071 GB, free: 13.3 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)