Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001627, allocations: 104 kB / 16.35 MB, free: 5.824 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.001751/0.00175, allocations: 190.4 kB / 17.29 MB, free: 5.48 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.255/2.255, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.2 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.267, allocations: 140.4 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002661/0.2696, allocations: 1.481 MB / 0.9525 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007519/0.2704, allocations: 462.9 kB / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.268e-05/0.2705, allocations: 0 / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.052e-05/0.2706, allocations: 7.922 kB / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.11e-05/0.2707, allocations: 19.86 kB / 0.953 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001996/0.2709, allocations: 35.83 kB / 0.9531 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001607/0.271, allocations: 107.8 kB / 0.9532 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.525e-05/0.2712, allocations: 12.17 kB / 0.9532 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.2713, allocations: 51.84 kB / 0.9532 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.126e-05/0.2714, allocations: 39.83 kB / 0.9533 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.2714, allocations: 8 kB / 0.9533 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.72e-05/0.2714, allocations: 12 kB / 0.9533 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.115e-05/0.2715, allocations: 11.98 kB / 0.9533 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.624e-05/0.2716, allocations: 47.77 kB / 0.9533 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.2717, allocations: 71.78 kB / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2717, allocations: 0 / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2717, allocations: 0 / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.2717, allocations: 0 / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006714/0.2724, allocations: 462.4 kB / 0.9538 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.2724, allocations: 8.031 kB / 0.9538 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.853e-05/0.2725, allocations: 12.84 kB / 0.9539 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.2727, allocations: 188.2 kB / 0.954 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.2727, allocations: 8.375 kB / 0.954 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.2727, allocations: 8.375 kB / 0.9541 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.273, allocations: 117.7 kB / 0.9542 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2731, allocations: 0 / 0.9542 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.2731, allocations: 4 kB / 0.9542 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.2731, allocations: 0 / 0.9542 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000289/0.2734, allocations: 95.86 kB / 0.9543 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005234/0.2739, allocations: 328.7 kB / 0.9546 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.2742, allocations: 106.5 kB / 0.9547 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.2744, allocations: 76.94 kB / 0.9547 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.2744, allocations: 0 / 0.9547 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002937/0.2747, allocations: 123.3 kB / 0.9549 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 3.877e-06/0.2748, allocations: 0 / 0.9549 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0007075/0.2755, allocations: 279.1 kB / 0.9551 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.2755, allocations: 89.08 kB / 0.9552 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.2756, allocations: 128.4 kB / 0.9553 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.2757, allocations: 33.7 kB / 0.9554 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.344e-05/0.2757, allocations: 88.14 kB / 0.9555 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.2758, allocations: 23.73 kB / 0.9555 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.39e-05/0.2758, allocations: 33.72 kB / 0.9555 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.276, allocations: 318.8 kB / 0.9558 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.2762, allocations: 67.95 kB / 0.9559 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.2763, allocations: 71.83 kB / 0.9559 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003326/0.2767, allocations: 181.9 kB / 0.9561 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2767, allocations: 4 kB / 0.9561 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000494/0.2772, allocations: 261.1 kB / 0.9564 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.314e-05/0.2773, allocations: 63.39 kB / 0.9564 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.2773, allocations: 0 / 0.9564 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.2773, allocations: 4 kB / 0.9564 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.2774, allocations: 15.98 kB / 0.9565 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.2774, allocations: 0 / 0.9565 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/0.2776, allocations: 31.88 kB / 0.9565 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.2776, allocations: 4 kB / 0.9565 GB, free: 2.227 MB / 0.7325 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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.0001204/0.2777, allocations: 157.5 kB / 0.9566 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.2778, allocations: 4 kB / 0.9566 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.163e-05/0.2778, allocations: 16.36 kB / 0.9567 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.2778, allocations: 0 / 0.9567 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2778, allocations: 0 / 0.9567 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2778, allocations: 0 / 0.9567 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/0.278, allocations: 201.5 kB / 0.9568 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.278, allocations: 0 / 0.9568 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.883e-05/0.2781, allocations: 11.98 kB / 0.9569 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2781, allocations: 3.938 kB / 0.9569 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.2781, allocations: 4 kB / 0.9569 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2781, allocations: 0 / 0.9569 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2781, allocations: 0 / 0.9569 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.2786, allocations: 250.6 kB / 0.9571 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.213e-05/0.2787, allocations: 89.03 kB / 0.9572 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.699e-05/0.2787, allocations: 4.094 kB / 0.9572 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.2789, allocations: 23.86 kB / 0.9572 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.279, allocations: 39.95 kB / 0.9573 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.279, allocations: 4 kB / 0.9573 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.807e-05/0.2791, allocations: 102.1 kB / 0.9574 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2791, allocations: 4 kB / 0.9574 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002148/0.2793, allocations: 23.94 kB / 0.9574 GB, free: 1.199 MB / 0.7325 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,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * 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.0001088/0.2794, allocations: 115.2 kB / 0.9575 GB, free: 1.074 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004901/0.2799, allocations: 262.7 kB / 0.9577 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2799, allocations: 0 / 0.9577 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002528/0.2802, allocations: 147.3 kB / 0.9579 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002051/0.2804, allocations: 13.02 kB / 0.9579 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004963/0.2809, allocations: 219.4 kB / 0.9581 GB, free: 388 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.2812, allocations: 0.6922 MB / 0.9588 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.818e-05/0.2812, allocations: 11.98 kB / 0.9588 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.2813, allocations: 15.44 kB / 0.9588 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/0.2813, allocations: 0 / 0.9588 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of Templates: time 0.004379/0.2857, allocations: 1.852 MB / 0.9606 GB, free: 13.8 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,numReq.u[1],numReq.u[2],numReq.y Variables in the result:numReq.kind,numReq.nin,numReq.threShold,numReq.u[1],numReq.u[2],numReq.y,pulse.amplitude,pulse.nperiod,pulse.offset,pulse.period,pulse.startTime,pulse.width,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time