Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.LimPIDWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_9_Buildings_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.007069/0.007069, allocations: 97.62 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.001722/0.001722, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.284/1.284, 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/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 61.8 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2421, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005231/0.2473, allocations: 4.116 MB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002639/0.25, allocations: 1.328 MB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000663/0.2507, allocations: 27.81 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004469/0.2512, allocations: 126.7 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005951/0.2518, allocations: 182.4 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.2528, allocations: 420.4 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001098/0.2539, allocations: 0.9554 MB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006915/0.2546, allocations: 466.4 kB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004598/0.2551, allocations: 338.7 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004328/0.2556, allocations: 338.4 kB / 1.096 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001576/0.2557, allocations: 92 kB / 1.096 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001418/0.2559, allocations: 88 kB / 1.096 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.256, allocations: 175.4 kB / 1.096 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004301/0.2565, allocations: 394.1 kB / 1.096 GB, free: 8.969 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.2575, allocations: 1.066 MB / 1.097 GB, free: 7.898 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2575, allocations: 4 kB / 1.097 GB, free: 7.895 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.133e-06/0.2575, allocations: 4 kB / 1.097 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.585e-05/0.2576, allocations: 0 / 1.097 GB, free: 7.891 MB / 0.8575 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.002137/0.2597, allocations: 1.092 MB / 1.098 GB, free: 6.738 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.2598, allocations: 12.03 kB / 1.098 GB, free: 6.727 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.2599, allocations: 98.69 kB / 1.098 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.2601, allocations: 92.38 kB / 1.099 GB, free: 6.531 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009145/0.261, allocations: 0.5654 MB / 1.099 GB, free: 5.926 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/0.2611, allocations: 45.69 kB / 1.099 GB, free: 5.883 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-05/0.2612, allocations: 60.38 kB / 1.099 GB, free: 5.824 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.2622, allocations: 0.6077 MB / 1.1 GB, free: 5.191 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.2622, allocations: 7.984 kB / 1.1 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.292e-05/0.2623, allocations: 20 kB / 1.1 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.2623, allocations: 16 kB / 1.1 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009384/0.2633, allocations: 461 kB / 1.1 GB, free: 4.699 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002805/0.2661, allocations: 1.997 MB / 1.102 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008706/0.267, allocations: 445.5 kB / 1.103 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004251/0.2674, allocations: 238.6 kB / 1.103 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.2674, allocations: 8.438 kB / 1.103 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005234/0.268, allocations: 261.3 kB / 1.103 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=49): time 2.024e-06/0.268, allocations: 0 / 1.103 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of matching and sorting (n=49): time 0.001264/0.2693, allocations: 0.5846 MB / 1.104 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.2693, allocations: 59.84 kB / 1.104 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004469/0.2698, allocations: 446 kB / 1.104 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.2698, allocations: 37.64 kB / 1.104 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.27, allocations: 329.6 kB / 1.105 GB, free: 212 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.2701, allocations: 170.5 kB / 1.105 GB, free: 40 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.2703, allocations: 94.28 kB / 1.105 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.2704, allocations: 374.7 kB / 1.105 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003695/0.2708, allocations: 165 kB / 1.105 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004157/0.2712, allocations: 249.8 kB / 1.106 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007653/0.272, allocations: 452 kB / 1.106 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.272, allocations: 0 / 1.106 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001017/0.2731, allocations: 0.5665 MB / 1.107 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.2731, allocations: 37.69 kB / 1.107 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2731, allocations: 3.984 kB / 1.107 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.2731, allocations: 8 kB / 1.107 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004797/0.2736, allocations: 111.8 kB / 1.107 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.2737, allocations: 4 kB / 1.107 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.274, allocations: 63.91 kB / 1.107 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.572e-05/0.274, allocations: 19.98 kB / 1.107 GB, free: 13.83 MB / 0.8731 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.0002456/0.2743, allocations: 210.8 kB / 1.107 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.376e-05/0.2744, allocations: 63.56 kB / 1.107 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.2745, allocations: 61.58 kB / 1.107 GB, free: 13.49 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.2745, allocations: 4 kB / 1.107 GB, free: 13.49 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.2745, allocations: 4 kB / 1.107 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2745, allocations: 0 / 1.107 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.2762, allocations: 1.186 MB / 1.108 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.2762, allocations: 0 / 1.108 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.2767, allocations: 99.88 kB / 1.108 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.2767, allocations: 0 / 1.108 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.2767, allocations: 8 kB / 1.108 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.2767, allocations: 7.984 kB / 1.108 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2767, allocations: 4 kB / 1.108 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.278, allocations: 0.7654 MB / 1.109 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.2782, allocations: 172.7 kB / 1.109 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.505e-05/0.2783, allocations: 16 kB / 1.109 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.2785, allocations: 19.97 kB / 1.109 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.659e-05/0.2786, allocations: 36.39 kB / 1.109 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.2787, allocations: 19.94 kB / 1.109 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003452/0.279, allocations: 306.9 kB / 1.11 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.5e-07/0.279, allocations: 0 / 1.11 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004436/0.2795, allocations: 143.6 kB / 1.11 GB, free: 10.63 MB / 0.8731 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.001517/0.281, allocations: 1.321 MB / 1.111 GB, free: 9.277 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008784/0.2819, allocations: 481 kB / 1.112 GB, free: 8.797 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2819, allocations: 4 kB / 1.112 GB, free: 8.793 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003937/0.2823, allocations: 218.4 kB / 1.112 GB, free: 8.578 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007215/0.2831, allocations: 159.5 kB / 1.112 GB, free: 8.434 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006601/0.2897, allocations: 4.806 MB / 1.117 GB, free: 3.477 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.2901, allocations: 0.886 MB / 1.117 GB, free: 2.566 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002693/0.2904, allocations: 64.58 kB / 1.118 GB, free: 2.5 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.2907, allocations: 219.4 kB / 1.118 GB, free: 2.285 MB / 0.8731 GB Notification: Performance of SimCode: time 1.082e-06/0.2907, allocations: 4 kB / 1.118 GB, free: 2.281 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.3194, allocations: 11.31 MB / 1.129 GB, free: 7.148 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.814/8.133, allocations: 4.062 kB / 1.129 GB, free: 7.145 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches