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.004419/0.004419, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001145/0.001145, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.173/1.173, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001955/0.001955, allocations: 290.3 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8338/0.8338, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 92.19 kB / 0.6809 GB, free: 7.523 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.345, allocations: 86.98 MB / 0.7659 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.004562/0.3496, allocations: 4.126 MB / 0.7699 GB, free: 15.74 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001862/0.3515, allocations: 1.329 MB / 0.7712 GB, free: 14.41 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002579/0.3518, allocations: 19.94 kB / 0.7712 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002893/0.3521, allocations: 130.7 kB / 0.7713 GB, free: 14.26 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.3524, allocations: 182.4 kB / 0.7715 GB, free: 14.08 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000706/0.3531, allocations: 416.1 kB / 0.7719 GB, free: 13.68 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007514/0.3539, allocations: 0.9632 MB / 0.7729 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000525/0.3544, allocations: 461.9 kB / 0.7733 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002839/0.3547, allocations: 334.8 kB / 0.7736 GB, free: 11.92 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.355, allocations: 338.3 kB / 0.7739 GB, free: 11.59 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.316e-05/0.3551, allocations: 92 kB / 0.774 GB, free: 11.5 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 8.828e-05/0.3552, allocations: 92 kB / 0.7741 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.3553, allocations: 171.5 kB / 0.7743 GB, free: 11.24 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002882/0.3556, allocations: 398 kB / 0.7747 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000837/0.3565, allocations: 1.064 MB / 0.7757 GB, free: 9.785 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.3565, allocations: 0 / 0.7757 GB, free: 9.785 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3565, allocations: 4 kB / 0.7757 GB, free: 9.781 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.3565, allocations: 0 / 0.7757 GB, free: 9.781 MB / 0.545 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.001587/0.3581, allocations: 1.104 MB / 0.7768 GB, free: 8.617 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.3581, allocations: 12.03 kB / 0.7768 GB, free: 8.605 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.71e-05/0.3582, allocations: 98.7 kB / 0.7769 GB, free: 8.5 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.3584, allocations: 84.42 kB / 0.777 GB, free: 8.418 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007976/0.3592, allocations: 0.5654 MB / 0.7775 GB, free: 7.816 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.3592, allocations: 45.69 kB / 0.7776 GB, free: 7.773 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.181e-05/0.3593, allocations: 60.38 kB / 0.7776 GB, free: 7.715 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009686/0.3603, allocations: 0.6116 MB / 0.7782 GB, free: 7.082 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.622e-05/0.3603, allocations: 15.83 kB / 0.7782 GB, free: 7.066 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.224e-05/0.3604, allocations: 20 kB / 0.7782 GB, free: 7.047 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/0.3604, allocations: 16 kB / 0.7783 GB, free: 7.031 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008954/0.3613, allocations: 457 kB / 0.7787 GB, free: 6.582 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002413/0.3637, allocations: 1.997 MB / 0.7806 GB, free: 4.516 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008341/0.3646, allocations: 448.9 kB / 0.7811 GB, free: 4.066 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004087/0.365, allocations: 238.1 kB / 0.7813 GB, free: 3.832 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.365, allocations: 8.438 kB / 0.7813 GB, free: 3.824 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000474/0.3655, allocations: 265.2 kB / 0.7816 GB, free: 3.555 MB / 0.545 GB Notification: Performance of pre-optimization done (n=49): time 1.923e-06/0.3655, allocations: 0 / 0.7816 GB, free: 3.555 MB / 0.545 GB Notification: Performance of matching and sorting (n=49): time 0.001158/0.3667, allocations: 0.5885 MB / 0.7821 GB, free: 2.965 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.3667, allocations: 55.84 kB / 0.7822 GB, free: 2.898 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004057/0.3671, allocations: 442.1 kB / 0.7826 GB, free: 2.457 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.3672, allocations: 29.7 kB / 0.7826 GB, free: 2.422 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.3674, allocations: 333.5 kB / 0.783 GB, free: 2.09 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.3675, allocations: 170.5 kB / 0.7831 GB, free: 1.922 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.3676, allocations: 94.23 kB / 0.7832 GB, free: 1.82 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3678, allocations: 370.7 kB / 0.7836 GB, free: 1.449 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.3681, allocations: 169 kB / 0.7837 GB, free: 1.285 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.3685, allocations: 249.8 kB / 0.784 GB, free: 1.016 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007307/0.3693, allocations: 448 kB / 0.7844 GB, free: 0.5508 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3693, allocations: 0 / 0.7844 GB, free: 0.5508 MB / 0.545 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009269/0.3702, allocations: 0.5704 MB / 0.7849 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.3703, allocations: 33.7 kB / 0.785 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3703, allocations: 4 kB / 0.785 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3703, allocations: 4 kB / 0.785 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.3708, allocations: 115.8 kB / 0.7851 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.3708, allocations: 4 kB / 0.7851 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.3711, allocations: 63.84 kB / 0.7852 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.279e-05/0.3711, allocations: 24 kB / 0.7852 GB, free: 15.71 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.0002068/0.3713, allocations: 210.3 kB / 0.7854 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.108e-05/0.3714, allocations: 55.61 kB / 0.7854 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.3715, allocations: 65.52 kB / 0.7855 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3715, allocations: 8 kB / 0.7855 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3715, allocations: 0 / 0.7855 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3715, allocations: 7.969 kB / 0.7855 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.3731, allocations: 1.19 MB / 0.7867 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3731, allocations: 0 / 0.7867 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004542/0.3735, allocations: 91.89 kB / 0.7868 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.3736, allocations: 7.984 kB / 0.7868 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.3736, allocations: 4 kB / 0.7868 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3736, allocations: 4 kB / 0.7868 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3736, allocations: 4 kB / 0.7868 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.3748, allocations: 0.7615 MB / 0.7875 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.375, allocations: 176.6 kB / 0.7877 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.872e-05/0.3751, allocations: 15.94 kB / 0.7877 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.3753, allocations: 27.97 kB / 0.7877 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.554e-05/0.3754, allocations: 36.39 kB / 0.7878 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.3754, allocations: 12 kB / 0.7878 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00029/0.3757, allocations: 310.9 kB / 0.7881 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3757, allocations: 0 / 0.7881 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003656/0.3761, allocations: 143.6 kB / 0.7882 GB, free: 12.51 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.001449/0.3776, allocations: 1.319 MB / 0.7895 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008151/0.3784, allocations: 485 kB / 0.79 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3784, allocations: 0 / 0.79 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003924/0.3788, allocations: 214.4 kB / 0.7902 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000678/0.3795, allocations: 152.1 kB / 0.7903 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006198/0.3857, allocations: 4.802 MB / 0.795 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.3861, allocations: 0.8899 MB / 0.7959 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002169/0.3863, allocations: 64.59 kB / 0.7959 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002692/0.3866, allocations: 219.4 kB / 0.7961 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of SimCode: time 2.61e-07/0.3866, allocations: 4 kB / 0.7962 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/0.4139, allocations: 11.33 MB / 0.8072 GB, free: 9.062 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.339/7.753, allocations: 10.03 kB / 0.8072 GB, free: 9.055 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)