Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",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.007811/0.007811, allocations: 102.7 kB / 15.73 MB, free: 5.992 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.002172/0.002172, allocations: 191.2 kB / 16.67 MB, free: 5.91 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.137 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.641/2.641, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 63.89 kB / 1.018 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2625, allocations: 151.6 MB / 1.166 GB, free: 7.363 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002625/0.2652, allocations: 1.515 MB / 1.168 GB, free: 5.832 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007288/0.2659, allocations: 458.9 kB / 1.168 GB, free: 5.379 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.237e-05/0.2659, allocations: 0 / 1.168 GB, free: 5.379 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 8.474e-05/0.266, allocations: 7.922 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.031e-05/0.2661, allocations: 15.81 kB / 1.168 GB, free: 5.355 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001734/0.2663, allocations: 27.95 kB / 1.168 GB, free: 5.328 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001547/0.2664, allocations: 95.7 kB / 1.168 GB, free: 5.234 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.226e-05/0.2665, allocations: 16.17 kB / 1.168 GB, free: 5.219 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.2667, allocations: 39.91 kB / 1.168 GB, free: 5.18 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.588e-05/0.2668, allocations: 39.77 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/0.2668, allocations: 12 kB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.761e-05/0.2668, allocations: 4 kB / 1.168 GB, free: 5.125 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.984e-05/0.2669, allocations: 15.92 kB / 1.168 GB, free: 5.109 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.2669, allocations: 35.8 kB / 1.168 GB, free: 5.074 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.2671, allocations: 75.98 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2671, allocations: 0 / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2671, allocations: 0 / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.2671, allocations: 0 / 1.168 GB, free: 5 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007099/0.2678, allocations: 454.4 kB / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.2678, allocations: 12.03 kB / 1.169 GB, free: 4.484 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.148e-05/0.2679, allocations: 34.75 kB / 1.169 GB, free: 4.441 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.547e-05/0.2679, allocations: 12.89 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.2681, allocations: 188.3 kB / 1.169 GB, free: 4.207 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-06/0.2682, allocations: 8.312 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.2682, allocations: 8.375 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002818/0.2685, allocations: 93.56 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.2685, allocations: 0 / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.2685, allocations: 0 / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.2685, allocations: 8 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002875/0.2688, allocations: 67.94 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005571/0.2694, allocations: 340.6 kB / 1.17 GB, free: 3.637 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.2697, allocations: 86.52 kB / 1.17 GB, free: 3.543 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.2699, allocations: 48.94 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.197e-05/0.2699, allocations: 0 / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.2702, allocations: 111.3 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2702, allocations: 4 kB / 1.17 GB, free: 3.367 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0006304/0.2708, allocations: 207.2 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.2709, allocations: 81.11 kB / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.271, allocations: 130.1 kB / 1.17 GB, free: 2.914 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.2711, allocations: 25.7 kB / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.617e-05/0.2711, allocations: 100.1 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.2712, allocations: 31.72 kB / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.745e-05/0.2712, allocations: 25.7 kB / 1.17 GB, free: 2.719 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.2714, allocations: 322.8 kB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.2716, allocations: 47.95 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.2717, allocations: 55.89 kB / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.2721, allocations: 161.9 kB / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2721, allocations: 0 / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004535/0.2725, allocations: 216.9 kB / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/0.2726, allocations: 55.41 kB / 1.171 GB, free: 1.816 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2726, allocations: 0 / 1.171 GB, free: 1.816 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.2726, allocations: 7.938 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.2727, allocations: 19.97 kB / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.2728, allocations: 0 / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.2729, allocations: 23.88 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.2729, allocations: 8 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001234/0.2731, allocations: 150.5 kB / 1.171 GB, free: 1.598 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.2731, allocations: 11.95 kB / 1.171 GB, free: 1.586 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.698e-05/0.2731, allocations: 12.7 kB / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.2731, allocations: 0 / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2731, allocations: 4 kB / 1.171 GB, free: 1.57 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.2731, allocations: 7.938 kB / 1.171 GB, free: 1.562 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006036/0.2737, allocations: 424.5 kB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2738, allocations: 0 / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9e-05/0.2739, allocations: 15.92 kB / 1.172 GB, free: 1.07 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.2739, allocations: 4 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.2739, allocations: 7.984 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.86e-06/0.2739, allocations: 12.22 kB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2739, allocations: 80 / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004563/0.2744, allocations: 265.1 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.352e-05/0.2744, allocations: 92.94 kB / 1.172 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.2745, allocations: 0 / 1.172 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.2746, allocations: 23.92 kB / 1.172 GB, free: 0.6328 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.2747, allocations: 23.97 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.417e-06/0.2747, allocations: 0 / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.798e-05/0.2748, allocations: 104.5 kB / 1.172 GB, free: 0.5078 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2748, allocations: 0 / 1.172 GB, free: 0.5078 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002412/0.2751, allocations: 20 kB / 1.172 GB, free: 500 kB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0007931/0.2759, allocations: 0.8077 MB / 1.173 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004603/0.2763, allocations: 218.7 kB / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2763, allocations: 0 / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.00023/0.2766, allocations: 111.4 kB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.2769, allocations: 19.92 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.2792, allocations: 1.703 MB / 1.175 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.2796, allocations: 0.7001 MB / 1.176 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.642e-05/0.2796, allocations: 11.98 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.814e-05/0.2797, allocations: 23.44 kB / 1.176 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.2797, allocations: 0 / 1.176 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.3022, allocations: 2.537 MB / 1.178 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.646/7.949, allocations: 23.94 kB / 1.178 GB, free: 10.31 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches