Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_10_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.007221/0.007221, allocations: 96.48 kB / 15.73 MB, free: 6.484 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.001651/0.001651, allocations: 191.6 kB / 16.67 MB, free: 6.391 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.49/2.49, allocations: 437.1 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 59.91 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2481, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002648/0.2508, allocations: 1.489 MB / 1.168 GB, free: 5.82 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008317/0.2517, allocations: 459 kB / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.679e-05/0.2517, allocations: 0 / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.812e-05/0.2519, allocations: 7.875 kB / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.537e-05/0.2519, allocations: 15.86 kB / 1.168 GB, free: 5.344 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002059/0.2521, allocations: 35.94 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.2523, allocations: 103.8 kB / 1.168 GB, free: 5.207 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.661e-05/0.2524, allocations: 16.17 kB / 1.168 GB, free: 5.191 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.2526, allocations: 47.78 kB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.595e-05/0.2527, allocations: 39.88 kB / 1.168 GB, free: 5.105 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.14e-05/0.2527, allocations: 8 kB / 1.168 GB, free: 5.098 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.766e-05/0.2527, allocations: 15.94 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.896e-05/0.2528, allocations: 15.98 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.739e-05/0.2529, allocations: 39.8 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.253, allocations: 79.97 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.253, allocations: 4 kB / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.643e-06/0.253, allocations: 0 / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.253, allocations: 0 / 1.168 GB, free: 4.945 MB / 0.92 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.0007285/0.2538, allocations: 450.5 kB / 1.169 GB, free: 4.445 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.2538, allocations: 8.031 kB / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/0.2539, allocations: 42.73 kB / 1.169 GB, free: 4.387 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.42e-05/0.2539, allocations: 8.891 kB / 1.169 GB, free: 4.379 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.2541, allocations: 192.2 kB / 1.169 GB, free: 4.152 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.2541, allocations: 4.375 kB / 1.169 GB, free: 4.148 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.2542, allocations: 8.375 kB / 1.169 GB, free: 4.141 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.2545, allocations: 117.5 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.2545, allocations: 0 / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.2546, allocations: 4 kB / 1.169 GB, free: 4.016 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2546, allocations: 0 / 1.169 GB, free: 4.016 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000305/0.2549, allocations: 99.89 kB / 1.169 GB, free: 3.918 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005122/0.2554, allocations: 328.7 kB / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.2557, allocations: 110.5 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.2559, allocations: 72.94 kB / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.256, allocations: 3.984 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003305/0.2563, allocations: 119.3 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.2563, allocations: 3.938 kB / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0007061/0.257, allocations: 279.2 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.2571, allocations: 89.09 kB / 1.17 GB, free: 2.828 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.742e-05/0.2572, allocations: 123.5 kB / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.2572, allocations: 33.7 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.102e-05/0.2573, allocations: 96.03 kB / 1.171 GB, free: 2.562 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.2573, allocations: 23.84 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.325e-05/0.2574, allocations: 33.7 kB / 1.171 GB, free: 2.5 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.2575, allocations: 322.8 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.2577, allocations: 63.95 kB / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.2579, allocations: 63.95 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/0.2583, allocations: 189.8 kB / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2583, allocations: 0 / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004957/0.2588, allocations: 257 kB / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.531e-05/0.2588, allocations: 63.39 kB / 1.171 GB, free: 1.5 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2589, allocations: 0 / 1.171 GB, free: 1.5 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.2589, allocations: 4 kB / 1.171 GB, free: 1.496 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.259, allocations: 20.17 kB / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.259, allocations: 4 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.2592, allocations: 19.98 kB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.2592, allocations: 11.92 kB / 1.172 GB, free: 1.441 MB / 0.92 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.0001178/0.2593, allocations: 151.6 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.2594, allocations: 7.953 kB / 1.172 GB, free: 1.27 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.2594, allocations: 16.36 kB / 1.172 GB, free: 1.254 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2594, allocations: 4.078 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2594, allocations: 3.938 kB / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2594, allocations: 4 kB / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.2596, allocations: 201.5 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2596, allocations: 0 / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.752e-05/0.2597, allocations: 11.98 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2597, allocations: 0 / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.2597, allocations: 8 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2597, allocations: 0 / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2597, allocations: 0 / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004788/0.2602, allocations: 254.6 kB / 1.172 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.097e-05/0.2603, allocations: 81.06 kB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.2603, allocations: 7.984 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.2604, allocations: 15.98 kB / 1.172 GB, free: 0.582 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.2606, allocations: 39.95 kB / 1.172 GB, free: 0.543 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.2606, allocations: 4 kB / 1.172 GB, free: 0.5391 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.134e-05/0.2607, allocations: 109.7 kB / 1.172 GB, free: 444 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.182e-06/0.2607, allocations: 0 / 1.172 GB, free: 444 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002127/0.2609, allocations: 23.94 kB / 1.172 GB, free: 420 kB / 0.92 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.0007545/0.2616, allocations: 0.7858 MB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005057/0.2622, allocations: 262.7 kB / 1.173 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2622, allocations: 0 / 1.173 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002541/0.2624, allocations: 139.3 kB / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.2627, allocations: 18.27 kB / 1.174 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.2649, allocations: 1.756 MB / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.2652, allocations: 0.6885 MB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.736e-05/0.2652, allocations: 8 kB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.541e-05/0.2653, allocations: 31.36 kB / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of SimCode: time 3.41e-07/0.2653, allocations: 0 / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.2831, allocations: 3.003 MB / 1.179 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/7.79, allocations: 11.95 kB / 1.179 GB, free: 9.633 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches