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.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: 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.001112/0.001112, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.329/2.329, allocations: 390.2 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.91 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7175/0.7189, allocations: 140.4 MB / 0.9496 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002502/0.7215, allocations: 1.478 MB / 0.951 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006881/0.7222, allocations: 459.4 kB / 0.9514 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.155e-05/0.7222, allocations: 1.031 kB / 0.9514 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.634e-05/0.7224, allocations: 7.875 kB / 0.9515 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.338e-05/0.7224, allocations: 14.09 kB / 0.9515 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002121/0.7226, allocations: 38.06 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.7228, allocations: 109.8 kB / 0.9516 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.7229, allocations: 19.39 kB / 0.9516 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.723, allocations: 49.84 kB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.089e-05/0.7231, allocations: 43.84 kB / 0.9517 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.836e-05/0.7232, allocations: 7.875 kB / 0.9517 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.152e-05/0.7232, allocations: 7.406 kB / 0.9517 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.555e-05/0.7232, allocations: 15.48 kB / 0.9517 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.508e-05/0.7233, allocations: 44.34 kB / 0.9518 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.7235, allocations: 79.77 kB / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.7235, allocations: 0 / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7235, allocations: 0 / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.7235, allocations: 0 / 0.9519 GB, free: 7.371 MB / 0.7169 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.0006432/0.7241, allocations: 453.7 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.7242, allocations: 9.531 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.945e-05/0.7242, allocations: 9.594 kB / 0.9523 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.7244, allocations: 192.5 kB / 0.9525 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.7244, allocations: 6.5 kB / 0.9525 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.7244, allocations: 7 kB / 0.9525 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.7247, allocations: 122.3 kB / 0.9526 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.7248, allocations: 1.5 kB / 0.9526 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.7248, allocations: 1.281 kB / 0.9526 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.7248, allocations: 1.188 kB / 0.9526 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000282/0.7251, allocations: 90.52 kB / 0.9527 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004822/0.7256, allocations: 339.3 kB / 0.953 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.7259, allocations: 110 kB / 0.9531 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.7261, allocations: 75.34 kB / 0.9532 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.7261, allocations: 1.031 kB / 0.9532 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003335/0.7264, allocations: 119.9 kB / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.824e-06/0.7264, allocations: 0 / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0006814/0.7271, allocations: 273.5 kB / 0.9536 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/0.7272, allocations: 89.47 kB / 0.9537 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.815e-05/0.7273, allocations: 132.2 kB / 0.9538 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.7273, allocations: 33.45 kB / 0.9538 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.7273, allocations: 86.64 kB / 0.9539 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.7274, allocations: 20.52 kB / 0.9539 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.7274, allocations: 33.59 kB / 0.954 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.693e-05/0.7275, allocations: 320.1 kB / 0.9543 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.7277, allocations: 69.92 kB / 0.9543 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.7278, allocations: 66.17 kB / 0.9544 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.7282, allocations: 187.2 kB / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.7282, allocations: 0 / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004508/0.7286, allocations: 262.4 kB / 0.9548 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.7287, allocations: 63.3 kB / 0.9549 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.7287, allocations: 1.656 kB / 0.9549 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.7287, allocations: 0 / 0.9549 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.7288, allocations: 13.52 kB / 0.9549 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.7288, allocations: 1.375 kB / 0.9549 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.729, allocations: 33.28 kB / 0.9549 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.729, allocations: 2.844 kB / 0.9549 GB, free: 4.707 MB / 0.7169 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 9.188e-05/0.7291, allocations: 158.9 kB / 0.9551 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.056e-05/0.7291, allocations: 9.094 kB / 0.9551 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.181e-05/0.7292, allocations: 17.78 kB / 0.9551 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.7292, allocations: 1.594 kB / 0.9551 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.7292, allocations: 0 / 0.9551 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.7292, allocations: 4 kB / 0.9551 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001169/0.7293, allocations: 200.1 kB / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.7293, allocations: 1.406 kB / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.251e-05/0.7294, allocations: 11.73 kB / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.7294, allocations: 0 / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.7295, allocations: 2.844 kB / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.7295, allocations: 1.375 kB / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.7295, allocations: 0 / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000425/0.7299, allocations: 248.1 kB / 0.9556 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.534e-05/0.7299, allocations: 85.02 kB / 0.9557 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.73, allocations: 11.98 kB / 0.9557 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.7301, allocations: 18.48 kB / 0.9557 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.7302, allocations: 38.64 kB / 0.9557 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.7302, allocations: 3.75 kB / 0.9557 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.384e-05/0.7303, allocations: 109.2 kB / 0.9558 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7303, allocations: 0 / 0.9558 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000208/0.7305, allocations: 26.41 kB / 0.9559 GB, free: 3.887 MB / 0.7169 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.0001058/0.7306, allocations: 105.5 kB / 0.956 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004799/0.7311, allocations: 265.9 kB / 0.9562 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.7311, allocations: 3.938 kB / 0.9562 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002272/0.7314, allocations: 141.8 kB / 0.9563 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.7316, allocations: 17.55 kB / 0.9564 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004751/0.7321, allocations: 213.9 kB / 0.9566 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.7322, allocations: 0.6975 MB / 0.9572 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.108e-05/0.7322, allocations: 8.328 kB / 0.9573 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.7323, allocations: 15.69 kB / 0.9573 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of SimCode: time 3.81e-07/0.7323, allocations: 0 / 0.9573 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of Templates: time 0.004049/0.7363, allocations: 1.859 MB / 0.9591 GB, free: 1.648 MB / 0.7169 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 -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/jenkins/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