Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",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.001191/0.001191, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.201/1.201, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.472/2.472, allocations: 469.4 MB / 0.742 GB, free: 7.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.62 kB / 0.9082 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2494, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004209/0.2537, allocations: 3.713 MB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001911/0.2556, allocations: 1.321 MB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002673/0.2559, allocations: 27.81 kB / 1.069 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002682/0.2562, allocations: 130.6 kB / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004229/0.2566, allocations: 182.5 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009102/0.2575, allocations: 0.573 MB / 1.069 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007285/0.2583, allocations: 0.9527 MB / 1.07 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004301/0.2587, allocations: 349.6 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003068/0.259, allocations: 358.4 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002914/0.2593, allocations: 354.1 kB / 1.071 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.2594, allocations: 76 kB / 1.071 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.022e-05/0.2595, allocations: 83.94 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.2596, allocations: 179.3 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002512/0.2599, allocations: 381.7 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006049/0.2605, allocations: 0.8566 MB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2605, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2605, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.096e-05/0.2605, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001707/0.2623, allocations: 1.183 MB / 1.074 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.2623, allocations: 12.03 kB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.114e-05/0.2624, allocations: 90.7 kB / 1.074 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.2625, allocations: 91.81 kB / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007675/0.2633, allocations: 0.5909 MB / 1.075 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.46e-05/0.2634, allocations: 101 kB / 1.075 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.106e-05/0.2635, allocations: 56.38 kB / 1.075 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00093/0.2644, allocations: 0.6117 MB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.2644, allocations: 4 kB / 1.076 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.869e-05/0.2645, allocations: 20 kB / 1.076 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.2645, allocations: 12 kB / 1.076 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008581/0.2654, allocations: 427.6 kB / 1.076 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002341/0.2677, allocations: 2.114 MB / 1.078 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.2688, allocations: 0.4971 MB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004206/0.2693, allocations: 220.7 kB / 1.079 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.2693, allocations: 4 kB / 1.079 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005985/0.2699, allocations: 282.1 kB / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.2699, allocations: 0 / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001291/0.2712, allocations: 0.6102 MB / 1.08 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.2713, allocations: 88.86 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005814/0.2719, allocations: 0.6061 MB / 1.08 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.2719, allocations: 45.64 kB / 1.08 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/0.2721, allocations: 360.8 kB / 1.081 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.2722, allocations: 157.8 kB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.2724, allocations: 94.23 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.025e-05/0.2725, allocations: 326 kB / 1.081 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004091/0.2729, allocations: 183 kB / 1.081 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004493/0.2733, allocations: 280.2 kB / 1.082 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.2742, allocations: 477.8 kB / 1.082 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2742, allocations: 0 / 1.082 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001061/0.2753, allocations: 0.6022 MB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.2753, allocations: 30.02 kB / 1.083 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.2753, allocations: 8 kB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.2753, allocations: 4 kB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/0.2758, allocations: 107.8 kB / 1.083 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.2758, allocations: 11.98 kB / 1.083 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.2761, allocations: 59.42 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.355e-05/0.2762, allocations: 23.98 kB / 1.083 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004853/0.2767, allocations: 310.9 kB / 1.083 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004043/0.2771, allocations: 260.2 kB / 1.084 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007326/0.2778, allocations: 454 kB / 1.084 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.085e-06/0.2778, allocations: 4 kB / 1.084 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009644/0.2788, allocations: 0.5825 MB / 1.085 GB, free: 8.547 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.2788, allocations: 38.94 kB / 1.085 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-06/0.2788, allocations: 0 / 1.085 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.831e-06/0.2789, allocations: 8 kB / 1.085 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004051/0.2793, allocations: 104.1 kB / 1.085 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.2793, allocations: 7.938 kB / 1.085 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.2796, allocations: 51.66 kB / 1.085 GB, free: 8.336 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.2796, allocations: 16 kB / 1.085 GB, free: 8.32 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001335/0.2798, allocations: 217 kB / 1.085 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.483e-05/0.2799, allocations: 79 kB / 1.085 GB, free: 8.023 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.28, allocations: 83.2 kB / 1.085 GB, free: 7.938 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.28, allocations: 11.98 kB / 1.085 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.28, allocations: 0 / 1.085 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.28, allocations: 0 / 1.085 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005445/0.2806, allocations: 0.618 MB / 1.086 GB, free: 7.258 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2806, allocations: 4 kB / 1.086 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/0.281, allocations: 83.89 kB / 1.086 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.281, allocations: 0 / 1.086 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.2811, allocations: 15.98 kB / 1.086 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.2811, allocations: 0 / 1.086 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2811, allocations: 0 / 1.086 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.2824, allocations: 0.7289 MB / 1.087 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001782/0.2826, allocations: 192 kB / 1.087 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.335e-05/0.2827, allocations: 12 kB / 1.087 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.2831, allocations: 39.89 kB / 1.087 GB, free: 6.152 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.751e-05/0.2832, allocations: 27.97 kB / 1.087 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.138e-05/0.2832, allocations: 19.98 kB / 1.087 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004007/0.2836, allocations: 427 kB / 1.087 GB, free: 5.695 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2836, allocations: 0 / 1.087 GB, free: 5.695 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005059/0.2841, allocations: 219.4 kB / 1.087 GB, free: 5.48 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.001551/0.2857, allocations: 1.281 MB / 1.089 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001472/0.2872, allocations: 0.8082 MB / 1.089 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2872, allocations: 0 / 1.089 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004142/0.2876, allocations: 216.4 kB / 1.09 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008001/0.2884, allocations: 209.1 kB / 1.09 GB, free: 2.93 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006689/0.2951, allocations: 5.626 MB / 1.095 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.2955, allocations: 0.918 MB / 1.096 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003366/0.2958, allocations: 93.11 kB / 1.096 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/0.2961, allocations: 255.4 kB / 1.097 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of SimCode: time 1.373e-06/0.2961, allocations: 0 / 1.097 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03039/0.3265, allocations: 13.85 MB / 1.11 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.782/7.109, allocations: 7.938 kB / 1.11 GB, free: 14.15 MB / 0.8731 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches