Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_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.005596/0.005596, allocations: 101.2 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.001301/0.001301, allocations: 194.2 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.393/2.393, allocations: 390.3 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 70.69 kB / 0.9504 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2584, allocations: 140.4 MB / 1.087 GB, free: 1.957 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002545/0.261, allocations: 1.509 MB / 1.089 GB, free: 444 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007437/0.2617, allocations: 456.3 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.666e-05/0.2618, allocations: 0 / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.211e-05/0.2619, allocations: 3.938 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.679e-05/0.262, allocations: 15.84 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.2622, allocations: 35.84 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00015/0.2623, allocations: 87.7 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.2625, allocations: 24.17 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.2626, allocations: 39.89 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.126e-05/0.2627, allocations: 39.83 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.2627, allocations: 8 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.62e-05/0.2627, allocations: 4 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.408e-05/0.2628, allocations: 15.94 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.705e-05/0.2629, allocations: 35.8 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.263, allocations: 78.52 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.263, allocations: 4 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.704e-06/0.263, allocations: 0 / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.421e-06/0.263, allocations: 0 / 1.09 GB, free: 15.6 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006788/0.2637, allocations: 443.4 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.2638, allocations: 8.031 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.446e-05/0.2638, allocations: 34.75 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.2638, allocations: 12.94 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.264, allocations: 192.1 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.264, allocations: 4.375 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.2641, allocations: 12.36 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002757/0.2643, allocations: 97.52 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.2644, allocations: 0 / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.2644, allocations: 0 / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.2644, allocations: 0 / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002805/0.2647, allocations: 79.92 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000541/0.2652, allocations: 332.6 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002881/0.2655, allocations: 86.5 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.2657, allocations: 56.88 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.2657, allocations: 0 / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.266, allocations: 107.4 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.266, allocations: 4 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005997/0.2666, allocations: 211.2 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.2667, allocations: 81.11 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.585e-05/0.2668, allocations: 134 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.2668, allocations: 33.64 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.409e-05/0.2669, allocations: 96.12 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.2669, allocations: 15.72 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.178e-05/0.267, allocations: 33.7 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.718e-05/0.2671, allocations: 322.8 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/0.2672, allocations: 43.97 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.2674, allocations: 55.89 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003095/0.2677, allocations: 169.9 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2677, allocations: 0 / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004164/0.2681, allocations: 204.9 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.319e-05/0.2682, allocations: 67.39 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.2682, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.2682, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.2683, allocations: 15.98 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.2684, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.2685, allocations: 27.86 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.2685, allocations: 3.984 kB / 1.093 GB, free: 12.37 MB / 0.8575 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.0001031/0.2686, allocations: 151.5 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.83e-05/0.2686, allocations: 7.906 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.084e-05/0.2687, allocations: 16.7 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.2687, allocations: 0 / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2687, allocations: 288 / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2687, allocations: 3.938 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005446/0.2693, allocations: 432.2 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2693, allocations: 3.938 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.609e-05/0.2694, allocations: 11.98 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.2694, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.2694, allocations: 4 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.2694, allocations: 3.938 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2694, allocations: 3.938 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004157/0.2698, allocations: 273 kB / 1.093 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.476e-05/0.2699, allocations: 85.02 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.2699, allocations: 7.984 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.2701, allocations: 15.92 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.803e-05/0.2702, allocations: 27.97 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.2702, allocations: 4 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.604e-05/0.2702, allocations: 101.4 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2703, allocations: 0 / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002357/0.2705, allocations: 16 kB / 1.094 GB, free: 11.11 MB / 0.8575 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.0006775/0.2712, allocations: 0.8121 MB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000425/0.2716, allocations: 218.7 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2716, allocations: 0 / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.2718, allocations: 115.3 kB / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.2721, allocations: 21.75 kB / 1.095 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002121/0.2742, allocations: 1.709 MB / 1.097 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.2745, allocations: 0.6963 MB / 1.097 GB, free: 7.355 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.819e-05/0.2746, allocations: 11.98 kB / 1.097 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.2746, allocations: 23.42 kB / 1.097 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.2746, allocations: 0 / 1.097 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01809/0.2927, allocations: 2.592 MB / 1.1 GB, free: 4.883 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.182/7.475, allocations: 11.75 kB / 1.1 GB, free: 4.871 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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