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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",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.004649/0.004649, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001106/0.001106, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.252/2.252, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 57.94 kB / 0.9503 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.2993, allocations: 140.4 MB / 1.087 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00256/0.3019, allocations: 1.482 MB / 1.089 GB, free: 0.6719 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007953/0.3027, allocations: 464.3 kB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.678e-05/0.3028, allocations: 4 kB / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.521e-05/0.3029, allocations: 3.938 kB / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.718e-05/0.303, allocations: 15.86 kB / 1.089 GB, free: 196 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.3032, allocations: 31.89 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.3034, allocations: 103.8 kB / 1.089 GB, free: 60 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.3035, allocations: 24.14 kB / 1.089 GB, free: 36 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.3037, allocations: 47.84 kB / 1.09 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.76e-05/0.3038, allocations: 39.83 kB / 1.09 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.68e-05/0.3038, allocations: 8 kB / 1.09 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.752e-05/0.3038, allocations: 8 kB / 1.09 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.313e-05/0.3039, allocations: 19.91 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.235e-05/0.304, allocations: 35.86 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.3041, allocations: 82.56 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3041, allocations: 0 / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3041, allocations: 0 / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.3042, allocations: 0 / 1.09 GB, free: 15.8 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007064/0.3049, allocations: 451.5 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.3049, allocations: 11.97 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.071e-05/0.305, allocations: 42.73 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.102e-05/0.305, allocations: 8.844 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.3052, allocations: 188.2 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.3052, allocations: 4.312 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.195e-05/0.3053, allocations: 12.38 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.3056, allocations: 117.5 kB / 1.091 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.3056, allocations: 0 / 1.091 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.3056, allocations: 8 kB / 1.091 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3056, allocations: 0 / 1.091 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002898/0.3059, allocations: 91.86 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005272/0.3065, allocations: 328.7 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.3068, allocations: 106.5 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.307, allocations: 72.94 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.307, allocations: 80 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003232/0.3073, allocations: 135.2 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.773e-06/0.3073, allocations: 3.938 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006777/0.308, allocations: 271.2 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.3081, allocations: 89.09 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.645e-05/0.3082, allocations: 133.8 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.3082, allocations: 25.7 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.302e-05/0.3083, allocations: 99.98 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.3083, allocations: 19.8 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/0.3084, allocations: 25.72 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.3085, allocations: 326.8 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.3087, allocations: 67.89 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.3088, allocations: 67.95 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.3092, allocations: 181.9 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3092, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004698/0.3096, allocations: 256.8 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.128e-05/0.3097, allocations: 67.39 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.3097, allocations: 8 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.3097, allocations: 0 / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.3099, allocations: 11.98 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.3099, allocations: 0 / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.31, allocations: 23.97 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.3101, allocations: 11.94 kB / 1.093 GB, free: 12.3 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 (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.0001109/0.3102, allocations: 147.5 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.3102, allocations: 19.89 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.945e-05/0.3102, allocations: 12.36 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3102, allocations: 4.031 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3103, allocations: 3.938 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3103, allocations: 0 / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.3104, allocations: 197.5 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3104, allocations: 0 / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.19e-05/0.3105, allocations: 15.92 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3105, allocations: 0 / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.3105, allocations: 4 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3105, allocations: 4 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3105, allocations: 0 / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004496/0.311, allocations: 250.8 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.311, allocations: 85.02 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/0.3111, allocations: 7.984 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.3112, allocations: 19.98 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3113, allocations: 35.95 kB / 1.094 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.3114, allocations: 8 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.558e-05/0.3114, allocations: 101.6 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3114, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002038/0.3116, allocations: 24 kB / 1.094 GB, free: 11.27 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,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.0007066/0.3123, allocations: 0.7898 MB / 1.095 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004703/0.3128, allocations: 270.6 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3128, allocations: 0 / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.3131, allocations: 139.4 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.3133, allocations: 15.98 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/0.3154, allocations: 1.742 MB / 1.097 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.3156, allocations: 0.6963 MB / 1.097 GB, free: 7.43 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.417e-05/0.3157, allocations: 7.984 kB / 1.097 GB, free: 7.422 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.19e-05/0.3158, allocations: 23.38 kB / 1.097 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of SimCode: time 5.01e-07/0.3158, allocations: 0 / 1.097 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8741/1.19, allocations: 3.07 MB / 1.1 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/12.16, allocations: 5.562 kB / 1.1 GB, free: 4.434 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > 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,pulse.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time