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.001763/0.001763, allocations: 109.9 kB / 16.37 MB, free: 6.012 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.001838/0.001838, allocations: 194.8 kB / 17.31 MB, free: 5.613 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.443/1.443, allocations: 222.9 MB / 241 MB, free: 15.16 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.336/2.336, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 65.05 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2912, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003299/0.2945, allocations: 1.476 MB / 0.9526 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008586/0.2954, allocations: 466.9 kB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.724e-05/0.2955, allocations: 0 / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.2956, allocations: 7.875 kB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.256e-05/0.2957, allocations: 11.88 kB / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.2959, allocations: 35.94 kB / 0.9531 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001949/0.2961, allocations: 107.7 kB / 0.9532 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.2963, allocations: 12.19 kB / 0.9532 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.2964, allocations: 51.88 kB / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.2966, allocations: 43.77 kB / 0.9533 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/0.2966, allocations: 8 kB / 0.9533 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.897e-05/0.2966, allocations: 8 kB / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.801e-05/0.2967, allocations: 19.92 kB / 0.9533 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.042e-05/0.2968, allocations: 35.86 kB / 0.9533 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.2969, allocations: 79.75 kB / 0.9534 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.2969, allocations: 0 / 0.9534 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.054e-06/0.2969, allocations: 4 kB / 0.9534 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.297, allocations: 0 / 0.9534 GB, free: 5.707 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.0007658/0.2977, allocations: 446.5 kB / 0.9538 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.2978, allocations: 12.03 kB / 0.9539 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.073e-05/0.2978, allocations: 12.84 kB / 0.9539 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.298, allocations: 192.2 kB / 0.954 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.2981, allocations: 8.375 kB / 0.9541 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.2981, allocations: 4.375 kB / 0.9541 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003202/0.2984, allocations: 129.6 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.2984, allocations: 7.922 kB / 0.9542 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.2985, allocations: 0 / 0.9542 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2985, allocations: 4 kB / 0.9542 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.2988, allocations: 87.92 kB / 0.9543 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005646/0.2993, allocations: 324.7 kB / 0.9546 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.2996, allocations: 110.4 kB / 0.9547 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/0.2998, allocations: 72.94 kB / 0.9548 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.2999, allocations: 4 kB / 0.9548 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003249/0.3002, allocations: 123.3 kB / 0.9549 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.3002, allocations: 0 / 0.9549 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.000693/0.3009, allocations: 279.1 kB / 0.9552 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.301, allocations: 81.11 kB / 0.9552 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.654e-05/0.3011, allocations: 129.8 kB / 0.9554 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.3011, allocations: 29.7 kB / 0.9554 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.985e-05/0.3012, allocations: 96.12 kB / 0.9555 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.3012, allocations: 19.75 kB / 0.9555 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.016e-05/0.3013, allocations: 29.7 kB / 0.9555 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3014, allocations: 322.8 kB / 0.9558 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.3016, allocations: 67.95 kB / 0.9559 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.3017, allocations: 63.94 kB / 0.956 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003184/0.3021, allocations: 181.9 kB / 0.9561 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3021, allocations: 8 kB / 0.9561 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004696/0.3026, allocations: 256.9 kB / 0.9564 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.968e-05/0.3026, allocations: 67.48 kB / 0.9564 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3026, allocations: 3.938 kB / 0.9564 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3027, allocations: 0 / 0.9564 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3028, allocations: 15.98 kB / 0.9565 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.3028, allocations: 0 / 0.9565 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.3029, allocations: 31.88 kB / 0.9565 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.303, allocations: 4 kB / 0.9565 GB, free: 2.254 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.0001227/0.3031, allocations: 163.4 kB / 0.9567 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/0.3031, allocations: 4 kB / 0.9567 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.069e-05/0.3032, allocations: 12.38 kB / 0.9567 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3032, allocations: 0 / 0.9567 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3032, allocations: 0 / 0.9567 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3032, allocations: 3.938 kB / 0.9567 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.3033, allocations: 197.7 kB / 0.9569 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.3034, allocations: 8 kB / 0.9569 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.327e-05/0.3034, allocations: 11.98 kB / 0.9569 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3034, allocations: 0 / 0.9569 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.3035, allocations: 7.984 kB / 0.9569 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3035, allocations: 0 / 0.9569 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3035, allocations: 0 / 0.9569 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004584/0.3039, allocations: 250.6 kB / 0.9571 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.304, allocations: 84.98 kB / 0.9572 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.304, allocations: 8 kB / 0.9572 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.3042, allocations: 19.97 kB / 0.9572 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.3043, allocations: 35.97 kB / 0.9573 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.3043, allocations: 7.969 kB / 0.9573 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.456e-05/0.3044, allocations: 102.4 kB / 0.9574 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3044, allocations: 4 kB / 0.9574 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002092/0.3046, allocations: 27.94 kB / 0.9574 GB, free: 1.215 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.0001172/0.3048, allocations: 103.2 kB / 0.9575 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000483/0.3052, allocations: 262.7 kB / 0.9578 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.3053, allocations: 0 / 0.9578 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.3055, allocations: 143.3 kB / 0.9579 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.3057, allocations: 19.94 kB / 0.9579 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005086/0.3062, allocations: 215.2 kB / 0.9581 GB, free: 416 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.3065, allocations: 0.6961 MB / 0.9588 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.822e-05/0.3066, allocations: 8 kB / 0.9588 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.147e-05/0.3066, allocations: 15.42 kB / 0.9588 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of SimCode: time 2.11e-07/0.3066, allocations: 0 / 0.9588 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of Templates: time 0.004386/0.311, allocations: 1.862 MB / 0.9606 GB, free: 13.82 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 cvode -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