Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 174.3 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.909/0.909, allocations: 177.2 MB / 203.5 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.822/1.822, allocations: 377.8 MB / 0.6228 GB, free: 8.652 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 0.9821 GB, free: 2.137 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.252e-05/2.414e-05, allocations: 5.375 kB / 0.9821 GB, free: 2.133 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001888/0.001912, allocations: 1.506 MB / 0.9836 GB, free: 0.6172 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0007278/0.00264, allocations: 498.7 kB / 0.9841 GB, free: 128 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.721e-05/0.002697, allocations: 0 / 0.9841 GB, free: 128 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 9.236e-05/0.002789, allocations: 3.938 kB / 0.9841 GB, free: 124 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.158e-05/0.002841, allocations: 19.86 kB / 0.9841 GB, free: 104 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.003096, allocations: 51.81 kB / 0.9842 GB, free: 52 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.003259, allocations: 103.8 kB / 0.9843 GB, free: 15.95 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.934e-05/0.003358, allocations: 4.188 kB / 0.9843 GB, free: 15.94 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.003551, allocations: 79.8 kB / 0.9843 GB, free: 15.86 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.937e-05/0.00363, allocations: 31.89 kB / 0.9844 GB, free: 15.83 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.978e-05/0.00366, allocations: 8 kB / 0.9844 GB, free: 15.82 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.271e-05/0.003723, allocations: 12 kB / 0.9844 GB, free: 15.81 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 5.606e-05/0.003779, allocations: 15.92 kB / 0.9844 GB, free: 15.8 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 6.558e-05/0.003845, allocations: 27.97 kB / 0.9844 GB, free: 15.77 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.004059, allocations: 103.7 kB / 0.9845 GB, free: 15.67 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.004064, allocations: 4 kB / 0.9845 GB, free: 15.66 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.924e-06/0.004066, allocations: 0 / 0.9845 GB, free: 15.66 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.004071, allocations: 0 / 0.9845 GB, free: 15.66 MB / 0.948 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.0005812/0.004652, allocations: 377.4 kB / 0.9849 GB, free: 15.25 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.00469, allocations: 8.031 kB / 0.9849 GB, free: 15.25 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.004821, allocations: 20.88 kB / 0.9849 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.005043, allocations: 137.6 kB / 0.9851 GB, free: 15.07 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.005058, allocations: 8.375 kB / 0.9851 GB, free: 15.06 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.005073, allocations: 8.375 kB / 0.9851 GB, free: 15.05 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002414/0.005314, allocations: 147.8 kB / 0.9852 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.005323, allocations: 192 / 0.9852 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.005337, allocations: 4.125 kB / 0.9852 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.005343, allocations: 4 kB / 0.9852 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.005511, allocations: 117.6 kB / 0.9853 GB, free: 14.77 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003727/0.005884, allocations: 264.4 kB / 0.9856 GB, free: 14.48 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.006119, allocations: 136.1 kB / 0.9857 GB, free: 14.33 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.006276, allocations: 102.5 kB / 0.9858 GB, free: 14.22 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.006296, allocations: 4 kB / 0.9858 GB, free: 14.21 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.006585, allocations: 161 kB / 0.986 GB, free: 14.04 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 2.625e-06/0.006588, allocations: 0 / 0.986 GB, free: 14.04 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0005568/0.007144, allocations: 330.6 kB / 0.9863 GB, free: 13.69 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.007191, allocations: 85.11 kB / 0.9864 GB, free: 13.59 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.192e-05/0.007283, allocations: 136.7 kB / 0.9865 GB, free: 13.45 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.007302, allocations: 29.7 kB / 0.9865 GB, free: 13.41 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.901e-05/0.007361, allocations: 96.12 kB / 0.9866 GB, free: 13.31 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.007376, allocations: 19.91 kB / 0.9866 GB, free: 13.29 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.822e-05/0.007424, allocations: 37.66 kB / 0.9867 GB, free: 13.25 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.593e-05/0.0075, allocations: 310.8 kB / 0.987 GB, free: 12.94 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.00762, allocations: 131.3 kB / 0.9871 GB, free: 12.8 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.008013, allocations: 123.3 kB / 0.9872 GB, free: 12.66 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.008187, allocations: 181.9 kB / 0.9874 GB, free: 12.46 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.00819, allocations: 4 kB / 0.9874 GB, free: 12.46 MB / 0.948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002962/0.008486, allocations: 320.2 kB / 0.9877 GB, free: 12.12 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.275e-05/0.008529, allocations: 67.39 kB / 0.9878 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.008533, allocations: 0 / 0.9878 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.008548, allocations: 4 kB / 0.9878 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.507e-05/0.008623, allocations: 11.98 kB / 0.9878 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.008628, allocations: 0 / 0.9878 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.457e-05/0.008703, allocations: 43.83 kB / 0.9878 GB, free: 11.98 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.008714, allocations: 4.094 kB / 0.9878 GB, free: 11.98 MB / 0.948 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 8.184e-05/0.008796, allocations: 155.4 kB / 0.988 GB, free: 11.81 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.008813, allocations: 19.88 kB / 0.988 GB, free: 11.79 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.848e-05/0.008841, allocations: 8.781 kB / 0.988 GB, free: 11.78 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.008844, allocations: 0 / 0.988 GB, free: 11.78 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.00885, allocations: 256 / 0.988 GB, free: 11.78 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.008853, allocations: 4 kB / 0.988 GB, free: 11.78 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.52e-05/0.008939, allocations: 129.4 kB / 0.9881 GB, free: 11.62 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.00894, allocations: 4 kB / 0.9881 GB, free: 11.62 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.862e-05/0.008979, allocations: 15.92 kB / 0.9881 GB, free: 11.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.008982, allocations: 0 / 0.9881 GB, free: 11.6 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.008994, allocations: 7.984 kB / 0.9881 GB, free: 11.59 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.008995, allocations: 0 / 0.9881 GB, free: 11.59 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.008996, allocations: 0 / 0.9881 GB, free: 11.59 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.00927, allocations: 276.3 kB / 0.9884 GB, free: 11.29 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.409e-05/0.009284, allocations: 11.89 kB / 0.9884 GB, free: 11.28 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.009302, allocations: 8 kB / 0.9884 GB, free: 11.27 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.802e-05/0.00936, allocations: 23.97 kB / 0.9885 GB, free: 11.25 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.009462, allocations: 35.95 kB / 0.9885 GB, free: 11.21 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.00947, allocations: 0 / 0.9885 GB, free: 11.21 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.483e-05/0.009514, allocations: 103.3 kB / 0.9886 GB, free: 11.11 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.009515, allocations: 0 / 0.9886 GB, free: 11.11 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001321/0.009647, allocations: 24 kB / 0.9886 GB, free: 11.09 MB / 0.948 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 9.214e-05/0.009739, allocations: 103.9 kB / 0.9887 GB, free: 10.98 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003358/0.01007, allocations: 351.8 kB / 0.989 GB, free: 10.59 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01008, allocations: 3.938 kB / 0.989 GB, free: 10.59 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.01021, allocations: 161 kB / 0.9892 GB, free: 10.41 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001627/0.01038, allocations: 12 kB / 0.9892 GB, free: 10.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004254/0.0108, allocations: 276.7 kB / 0.9895 GB, free: 10.09 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.092e-05/0.01085, allocations: 75.58 kB / 0.9895 GB, free: 9.996 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.803e-05/0.01089, allocations: 16.5 kB / 0.9896 GB, free: 9.977 MB / 0.948 GB Notification: Performance of SimCode: time 1.192e-06/0.01089, allocations: 0 / 0.9896 GB, free: 9.977 MB / 0.948 GB Notification: Performance of Templates: time 0.002473/0.01336, allocations: 1.506 MB / 0.991 GB, free: 8.48 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.67321440577507]