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.006664/0.006664, allocations: 101.2 kB / 15.73 MB, free: 5.996 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.00147/0.00147, allocations: 185.6 kB / 16.67 MB, free: 5.93 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002592/0.002591, allocations: 283.1 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.046/1.046, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00278/0.00278, allocations: 107.8 kB / 0.6809 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1602, allocations: 86.97 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005486/0.1657, allocations: 4.111 MB / 0.7699 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002297/0.168, allocations: 1.329 MB / 0.7712 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000277/0.1683, allocations: 23.88 kB / 0.7712 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000317/0.1686, allocations: 130.7 kB / 0.7713 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003463/0.169, allocations: 182.3 kB / 0.7715 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008386/0.1698, allocations: 420.8 kB / 0.7719 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009582/0.1708, allocations: 0.9593 MB / 0.7728 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006398/0.1714, allocations: 470.3 kB / 0.7733 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003591/0.1718, allocations: 334.7 kB / 0.7736 GB, free: 0.9844 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003735/0.1722, allocations: 334.4 kB / 0.7739 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.1723, allocations: 88 kB / 0.774 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.1725, allocations: 92 kB / 0.7741 GB, free: 492 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.1726, allocations: 183.3 kB / 0.7743 GB, free: 308 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.2982/0.4708, allocations: 390.2 kB / 0.7746 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.4722, allocations: 1.059 MB / 0.7757 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4722, allocations: 1.156 kB / 0.7757 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4722, allocations: 0 / 0.7757 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.441e-05/0.4722, allocations: 0.7812 kB / 0.7757 GB, free: 9.684 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.00175/0.474, allocations: 1.102 MB / 0.7768 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.474, allocations: 9.688 kB / 0.7768 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001054/0.4742, allocations: 100.5 kB / 0.7769 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.4743, allocations: 86.23 kB / 0.7769 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000843/0.4751, allocations: 0.5686 MB / 0.7775 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.4752, allocations: 43.83 kB / 0.7775 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.999e-05/0.4753, allocations: 60 kB / 0.7776 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.4764, allocations: 0.6071 MB / 0.7782 GB, free: 8.566 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.4764, allocations: 6 kB / 0.7782 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.28e-05/0.4765, allocations: 25.38 kB / 0.7782 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.4765, allocations: 14.06 kB / 0.7782 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.4775, allocations: 458.6 kB / 0.7787 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.48, allocations: 2.002 MB / 0.7806 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000858/0.4808, allocations: 441.4 kB / 0.7811 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004298/0.4813, allocations: 237.7 kB / 0.7813 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-05/0.4813, allocations: 5.938 kB / 0.7813 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004963/0.4818, allocations: 266 kB / 0.7815 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.4818, allocations: 3.969 kB / 0.7815 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of matching and sorting (n=49): time 0.001235/0.4831, allocations: 0.5814 MB / 0.7821 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.4831, allocations: 57.44 kB / 0.7822 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000453/0.4836, allocations: 444 kB / 0.7826 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.4836, allocations: 37.62 kB / 0.7826 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.4838, allocations: 334.9 kB / 0.7829 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.365e-05/0.4839, allocations: 172.5 kB / 0.7831 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.484, allocations: 91.53 kB / 0.7832 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.356e-05/0.4841, allocations: 366.1 kB / 0.7835 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003745/0.4845, allocations: 170 kB / 0.7837 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004087/0.4849, allocations: 250.1 kB / 0.7839 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007982/0.4857, allocations: 449.7 kB / 0.7844 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.4857, allocations: 0.875 kB / 0.7844 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001039/0.4868, allocations: 0.5671 MB / 0.7849 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.4868, allocations: 37.38 kB / 0.785 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.4868, allocations: 2.156 kB / 0.785 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.4869, allocations: 3.969 kB / 0.785 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005095/0.4874, allocations: 113 kB / 0.7851 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.4874, allocations: 4.594 kB / 0.7851 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003383/0.4878, allocations: 66.48 kB / 0.7851 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-05/0.4878, allocations: 23.22 kB / 0.7852 GB, free: 5.473 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.0002076/0.488, allocations: 209.9 kB / 0.7854 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.678e-05/0.4881, allocations: 60.52 kB / 0.7854 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/0.4882, allocations: 62.47 kB / 0.7855 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.4882, allocations: 4.281 kB / 0.7855 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.4882, allocations: 3.75 kB / 0.7855 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.4883, allocations: 4.75 kB / 0.7855 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/0.4899, allocations: 1.185 MB / 0.7867 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.4899, allocations: 1.188 kB / 0.7867 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004614/0.4903, allocations: 95.7 kB / 0.7867 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.207e-06/0.4904, allocations: 2.844 kB / 0.7867 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.4904, allocations: 8.266 kB / 0.7868 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.4904, allocations: 7.156 kB / 0.7868 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4904, allocations: 0.6562 kB / 0.7868 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.4916, allocations: 0.7573 MB / 0.7875 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.4918, allocations: 178.8 kB / 0.7877 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.564e-05/0.4918, allocations: 16.16 kB / 0.7877 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.4921, allocations: 23.17 kB / 0.7877 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.907e-05/0.4922, allocations: 37.2 kB / 0.7877 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.4923, allocations: 15.59 kB / 0.7878 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002846/0.4926, allocations: 313.5 kB / 0.7881 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4926, allocations: 0 / 0.7881 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004239/0.493, allocations: 140.5 kB / 0.7882 GB, free: 3.773 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.001344/0.4943, allocations: 1.319 MB / 0.7895 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008406/0.4952, allocations: 483.5 kB / 0.7899 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4952, allocations: 0 / 0.7899 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003919/0.4956, allocations: 216.1 kB / 0.7901 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007554/0.4964, allocations: 156.2 kB / 0.7903 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00648/0.5029, allocations: 4.818 MB / 0.795 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005141/0.5034, allocations: 0.8863 MB / 0.7959 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002796/0.5037, allocations: 64.88 kB / 0.7959 GB, free: 15 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003082/0.504, allocations: 219.8 kB / 0.7961 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of SimCode: time 6.41e-07/0.504, allocations: 4 kB / 0.7961 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03819/0.5422, allocations: 11.32 MB / 0.8072 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.919/9.462, allocations: 13.2 kB / 0.8072 GB, free: 13.01 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)