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.006499/0.006499, allocations: 101.8 kB / 15.73 MB, free: 6.477 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.001521/0.00152, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 4.348 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.305/2.305, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 61.59 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2391, allocations: 140.4 MB / 1.087 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005102/0.2442, allocations: 4.123 MB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002422/0.2467, allocations: 1.325 MB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005599/0.2472, allocations: 23.88 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004033/0.2477, allocations: 130.7 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005068/0.2482, allocations: 178.3 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009277/0.2491, allocations: 424.6 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00103/0.2502, allocations: 0.9594 MB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000632/0.2508, allocations: 458.1 kB / 1.095 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003796/0.2512, allocations: 338.7 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002992/0.2515, allocations: 326.4 kB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.983e-05/0.2516, allocations: 92 kB / 1.096 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.588e-05/0.2517, allocations: 92 kB / 1.096 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.2519, allocations: 183.4 kB / 1.096 GB, free: 9.332 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002831/0.2521, allocations: 394.1 kB / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008339/0.253, allocations: 1.066 MB / 1.097 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.253, allocations: 3.984 kB / 1.097 GB, free: 7.875 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.363e-06/0.253, allocations: 0 / 1.097 GB, free: 7.875 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.317e-05/0.253, allocations: 0 / 1.097 GB, free: 7.875 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.001657/0.2547, allocations: 1.061 MB / 1.098 GB, free: 6.754 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.2547, allocations: 12.02 kB / 1.098 GB, free: 6.742 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.962e-05/0.2548, allocations: 106.7 kB / 1.098 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.255, allocations: 83.91 kB / 1.098 GB, free: 6.547 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008146/0.2558, allocations: 0.5611 MB / 1.099 GB, free: 5.945 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.338e-05/0.2558, allocations: 49.69 kB / 1.099 GB, free: 5.898 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.774e-05/0.2559, allocations: 60.38 kB / 1.099 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009784/0.2569, allocations: 0.6076 MB / 1.1 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.2569, allocations: 0 / 1.1 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.094e-05/0.257, allocations: 24 kB / 1.1 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.257, allocations: 20 kB / 1.1 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009341/0.258, allocations: 457 kB / 1.1 GB, free: 4.719 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.2605, allocations: 1.997 MB / 1.102 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008735/0.2613, allocations: 445.4 kB / 1.103 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000428/0.2618, allocations: 246.5 kB / 1.103 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.167e-05/0.2618, allocations: 4.438 kB / 1.103 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000499/0.2623, allocations: 257.3 kB / 1.103 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=49): time 1.993e-06/0.2623, allocations: 0 / 1.103 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of matching and sorting (n=49): time 0.001228/0.2636, allocations: 0.5921 MB / 1.104 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.2636, allocations: 55.84 kB / 1.104 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004253/0.2641, allocations: 442 kB / 1.104 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/0.2641, allocations: 33.7 kB / 1.104 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.2643, allocations: 328.9 kB / 1.104 GB, free: 236 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.2644, allocations: 169.6 kB / 1.105 GB, free: 64 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.2646, allocations: 98.31 kB / 1.105 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.2647, allocations: 362.8 kB / 1.105 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003686/0.2651, allocations: 161 kB / 1.105 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004248/0.2655, allocations: 253.8 kB / 1.105 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007727/0.2663, allocations: 452 kB / 1.106 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.2663, allocations: 4 kB / 1.106 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009774/0.2673, allocations: 0.5662 MB / 1.106 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.2673, allocations: 31.58 kB / 1.106 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.2674, allocations: 4 kB / 1.106 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.2674, allocations: 7.938 kB / 1.106 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004763/0.2679, allocations: 107.9 kB / 1.107 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.2679, allocations: 16.19 kB / 1.107 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.2682, allocations: 55.5 kB / 1.107 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.2682, allocations: 20 kB / 1.107 GB, free: 13.86 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.0002243/0.2685, allocations: 205.8 kB / 1.107 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.155e-05/0.2685, allocations: 59.19 kB / 1.107 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001306/0.2687, allocations: 69.58 kB / 1.107 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.2687, allocations: 4 kB / 1.107 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2687, allocations: 4 kB / 1.107 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.2687, allocations: 3.984 kB / 1.107 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/0.2703, allocations: 1.182 MB / 1.108 GB, free: 12.28 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2703, allocations: 0 / 1.108 GB, free: 12.28 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004568/0.2708, allocations: 91.89 kB / 1.108 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.2708, allocations: 8 kB / 1.108 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.2708, allocations: 11.98 kB / 1.108 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.2709, allocations: 0 / 1.108 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2709, allocations: 0 / 1.108 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.2721, allocations: 0.7651 MB / 1.109 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.2723, allocations: 168.3 kB / 1.109 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.957e-05/0.2724, allocations: 12 kB / 1.109 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/0.2727, allocations: 23.97 kB / 1.109 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.606e-05/0.2728, allocations: 36.39 kB / 1.109 GB, free: 11.13 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.2728, allocations: 12 kB / 1.109 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003035/0.2731, allocations: 314.8 kB / 1.11 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2731, allocations: 0 / 1.11 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004203/0.2735, allocations: 143.4 kB / 1.11 GB, free: 10.68 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.00152/0.2751, allocations: 1.324 MB / 1.111 GB, free: 9.324 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008716/0.2759, allocations: 485 kB / 1.111 GB, free: 8.84 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2759, allocations: 0 / 1.111 GB, free: 8.84 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003965/0.2764, allocations: 210.9 kB / 1.112 GB, free: 8.633 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007283/0.2771, allocations: 156.7 kB / 1.112 GB, free: 8.484 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006469/0.2836, allocations: 4.78 MB / 1.116 GB, free: 3.555 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.284, allocations: 0.8899 MB / 1.117 GB, free: 2.641 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002447/0.2842, allocations: 64.58 kB / 1.117 GB, free: 2.574 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002702/0.2845, allocations: 219.4 kB / 1.118 GB, free: 2.359 MB / 0.8731 GB Notification: Performance of SimCode: time 4.3e-07/0.2845, allocations: 0 / 1.118 GB, free: 2.359 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03176/0.3163, allocations: 11.31 MB / 1.129 GB, free: 7.227 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.172/8.489, allocations: 14.34 kB / 1.129 GB, free: 7.215 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