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.00679/0.00679, allocations: 100.8 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.001465/0.001465, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 4.195 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.613/2.613, allocations: 437 MB / 0.7105 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 67.89 kB / 1.018 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2735, allocations: 151.6 MB / 1.166 GB, free: 7.449 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002661/0.2762, allocations: 1.513 MB / 1.168 GB, free: 5.918 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007545/0.2769, allocations: 455 kB / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.589e-05/0.277, allocations: 4 kB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.2771, allocations: 7.875 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.966e-05/0.2772, allocations: 11.86 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.2774, allocations: 31.89 kB / 1.168 GB, free: 5.414 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001673/0.2776, allocations: 87.77 kB / 1.168 GB, free: 5.328 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.2777, allocations: 12.19 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.2779, allocations: 47.83 kB / 1.168 GB, free: 5.27 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.731e-05/0.278, allocations: 43.83 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.278, allocations: 4 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.317e-05/0.2781, allocations: 8 kB / 1.168 GB, free: 5.215 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.931e-05/0.2781, allocations: 8 kB / 1.168 GB, free: 5.207 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.63e-05/0.2782, allocations: 35.8 kB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.2784, allocations: 74.58 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2784, allocations: 0 / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2784, allocations: 0 / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.847e-06/0.2784, allocations: 4 kB / 1.168 GB, free: 5.098 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.0007272/0.2791, allocations: 443.4 kB / 1.169 GB, free: 4.605 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.2792, allocations: 16.02 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.839e-05/0.2792, allocations: 38.69 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.2793, allocations: 8.844 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001979/0.2795, allocations: 188.2 kB / 1.169 GB, free: 4.312 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.2795, allocations: 4.375 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.177e-05/0.2795, allocations: 12.36 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.2798, allocations: 93.58 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.2799, allocations: 8 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.2799, allocations: 3.938 kB / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.2799, allocations: 0 / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.2802, allocations: 71.92 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005727/0.2807, allocations: 332.6 kB / 1.17 GB, free: 3.742 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.281, allocations: 90.55 kB / 1.17 GB, free: 3.645 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.2812, allocations: 52.94 kB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.2812, allocations: 3.938 kB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002844/0.2815, allocations: 103.3 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.2815, allocations: 0 / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0005804/0.2821, allocations: 215.1 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.2822, allocations: 81.11 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.578e-05/0.2823, allocations: 132.1 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.2823, allocations: 33.7 kB / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.55e-05/0.2824, allocations: 96.12 kB / 1.17 GB, free: 2.875 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.2824, allocations: 15.72 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.625e-05/0.2824, allocations: 29.7 kB / 1.17 GB, free: 2.824 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.728e-05/0.2825, allocations: 322.8 kB / 1.171 GB, free: 2.5 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.2827, allocations: 43.97 kB / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.2829, allocations: 51.95 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.2832, allocations: 169.8 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2832, allocations: 4 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004249/0.2836, allocations: 200.9 kB / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.495e-05/0.2837, allocations: 71.33 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2837, allocations: 0 / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2837, allocations: 7.938 kB / 1.171 GB, free: 1.91 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.2838, allocations: 15.98 kB / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.2839, allocations: 0.5938 kB / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.284, allocations: 19.86 kB / 1.171 GB, free: 1.875 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.284, allocations: 7.984 kB / 1.171 GB, free: 1.867 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.0001131/0.2841, allocations: 151.5 kB / 1.171 GB, free: 1.703 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.2842, allocations: 7.906 kB / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.2842, allocations: 20.7 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2842, allocations: 0 / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2842, allocations: 0 / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2842, allocations: 3.938 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005503/0.2848, allocations: 432.1 kB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2848, allocations: 4 kB / 1.172 GB, free: 1.184 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.597e-05/0.2849, allocations: 11.98 kB / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2849, allocations: 4 kB / 1.172 GB, free: 1.168 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2849, allocations: 0 / 1.172 GB, free: 1.168 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.2849, allocations: 7.938 kB / 1.172 GB, free: 1.16 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2849, allocations: 0 / 1.172 GB, free: 1.16 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004035/0.2853, allocations: 269 kB / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.2854, allocations: 81.02 kB / 1.172 GB, free: 0.7773 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.2854, allocations: 12 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.2856, allocations: 23.91 kB / 1.172 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.99e-05/0.2857, allocations: 23.95 kB / 1.172 GB, free: 0.7188 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.2857, allocations: 4 kB / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.852e-05/0.2858, allocations: 100.2 kB / 1.172 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2858, allocations: 0 / 1.172 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002407/0.286, allocations: 16 kB / 1.172 GB, free: 0.6016 MB / 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.0006891/0.2867, allocations: 0.8077 MB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004226/0.2871, allocations: 222.7 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2872, allocations: 4 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002091/0.2874, allocations: 111.4 kB / 1.174 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.2877, allocations: 14 kB / 1.174 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002211/0.2899, allocations: 1.716 MB / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002618/0.2902, allocations: 0.6924 MB / 1.176 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.688e-05/0.2902, allocations: 11.98 kB / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.742e-05/0.2903, allocations: 31.36 kB / 1.176 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of SimCode: time 3.51e-07/0.2903, allocations: 0 / 1.176 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.3087, allocations: 2.525 MB / 1.178 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.397/7.705, allocations: 20.27 kB / 1.178 GB, free: 10.43 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,act1.y,act2.y,act3.y,reqCou.nInc Variables in the result:act1.amplitude,act1.nperiod,act1.offset,act1.period,act1.startTime,act1.width,act1.y,act2.amplitude,act2.f,act2.offset,act2.phase,act2.startTime,act2.y,act3.k,act3.y,reqCou.nAct,reqCou.nInc,reqCou.uAct[1],reqCou.uAct[2],reqCou.uAct[3],reqCou.uTri,time