Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_latest_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.006916/0.006916, allocations: 97.11 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.001729/0.001729, allocations: 194.5 kB / 16.68 MB, free: 5.973 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.769/2.769, allocations: 469.4 MB / 0.7421 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 67.89 kB / 1.064 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2743, allocations: 159.1 MB / 1.22 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002885/0.2772, allocations: 1.491 MB / 1.221 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008851/0.2781, allocations: 454.9 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.642e-05/0.2783, allocations: 0 / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.2784, allocations: 7.922 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.761e-05/0.2785, allocations: 11.88 kB / 1.222 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.2787, allocations: 43.88 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000179/0.2789, allocations: 103.8 kB / 1.222 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.279, allocations: 16.17 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.2792, allocations: 43.84 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.673e-05/0.2793, allocations: 47.81 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.682e-05/0.2793, allocations: 8 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.935e-05/0.2793, allocations: 8 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.535e-05/0.2794, allocations: 15.92 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.781e-05/0.2795, allocations: 39.84 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.2796, allocations: 83.7 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2796, allocations: 0 / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.203e-06/0.2796, allocations: 0 / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.2796, allocations: 0 / 1.222 GB, free: 12.34 MB / 0.9825 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.0007081/0.2804, allocations: 454.5 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.2804, allocations: 11.97 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.225e-05/0.2805, allocations: 38.75 kB / 1.222 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.414e-05/0.2805, allocations: 8.891 kB / 1.222 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.2807, allocations: 196.2 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.2807, allocations: 4.375 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.2808, allocations: 12.38 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003186/0.2811, allocations: 109.6 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.2811, allocations: 0 / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.2811, allocations: 7.938 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2811, allocations: 0 / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003172/0.2814, allocations: 99.84 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005942/0.2821, allocations: 324.8 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003394/0.2824, allocations: 106.5 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002063/0.2826, allocations: 80.88 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.2827, allocations: 0 / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.283, allocations: 123.3 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.283, allocations: 0 / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0007151/0.2838, allocations: 279.2 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.2838, allocations: 85.11 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.291e-05/0.2839, allocations: 124.8 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.284, allocations: 33.7 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.687e-05/0.284, allocations: 96.09 kB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.2841, allocations: 19.83 kB / 1.224 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/0.2841, allocations: 29.72 kB / 1.224 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.2842, allocations: 326.8 kB / 1.224 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.2844, allocations: 67.89 kB / 1.225 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.2846, allocations: 63.95 kB / 1.225 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003534/0.285, allocations: 181.9 kB / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.285, allocations: 0 / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005135/0.2855, allocations: 264.9 kB / 1.225 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.217e-05/0.2856, allocations: 67.39 kB / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.2856, allocations: 0 / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.2856, allocations: 4 kB / 1.225 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.2858, allocations: 11.98 kB / 1.225 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.2858, allocations: 0 / 1.225 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.286, allocations: 20.22 kB / 1.225 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.286, allocations: 16.03 kB / 1.225 GB, free: 8.844 MB / 0.9825 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.0001168/0.2861, allocations: 160.9 kB / 1.225 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.206e-05/0.2861, allocations: 7.953 kB / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.678e-05/0.2862, allocations: 12.38 kB / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.2862, allocations: 0 / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2862, allocations: 0 / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.2862, allocations: 0 / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001514/0.2864, allocations: 201.6 kB / 1.225 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2864, allocations: 3.938 kB / 1.225 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.3e-05/0.2865, allocations: 23.92 kB / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2865, allocations: 0 / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.2865, allocations: 4 kB / 1.226 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2865, allocations: 0 / 1.226 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.2865, allocations: 3.984 kB / 1.226 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004878/0.287, allocations: 250.6 kB / 1.226 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.2871, allocations: 77.11 kB / 1.226 GB, free: 8 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.2871, allocations: 4 kB / 1.226 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.2873, allocations: 23.97 kB / 1.226 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.2874, allocations: 31.97 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.2874, allocations: 4 kB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.957e-05/0.2875, allocations: 107.1 kB / 1.226 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2875, allocations: 0 / 1.226 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002219/0.2877, allocations: 31.94 kB / 1.226 GB, free: 7.801 MB / 0.9825 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.000755/0.2885, allocations: 0.7781 MB / 1.227 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005041/0.289, allocations: 274.6 kB / 1.227 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.289, allocations: 0 / 1.227 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.2892, allocations: 135.3 kB / 1.227 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.2895, allocations: 15.94 kB / 1.227 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.2917, allocations: 1.763 MB / 1.229 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.292, allocations: 0.6924 MB / 1.23 GB, free: 3.961 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.476e-05/0.2921, allocations: 7.984 kB / 1.23 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.552e-05/0.2921, allocations: 23.44 kB / 1.23 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.2921, allocations: 0 / 1.23 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01876/0.3109, allocations: 3.018 MB / 1.233 GB, free: 1.027 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.468/7.778, allocations: 12.84 kB / 1.233 GB, free: 1.02 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches