Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.002186/0.002186, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 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.002282/0.002282, allocations: 173.2 kB / 22.76 MB, free: 1.664 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 1.577/1.577, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.433/3.433, allocations: 429.5 MB / 0.6729 GB, free: 4.02 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0.6562 kB / 0.8774 GB, free: 6.707 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.786e-05/2.94e-05, allocations: 2.312 kB / 0.8774 GB, free: 6.703 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003437/0.003467, allocations: 1.806 MB / 0.8792 GB, free: 4.91 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001417/0.004884, allocations: 0.6906 MB / 0.8799 GB, free: 4.219 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.218e-05/0.004976, allocations: 9 kB / 0.8799 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.005125, allocations: 27.73 kB / 0.8799 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.666e-05/0.005221, allocations: 35.66 kB / 0.8799 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007417/0.005963, allocations: 261.5 kB / 0.8802 GB, free: 3.895 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0005517/0.006515, allocations: 403.4 kB / 0.8806 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005041/0.007019, allocations: 212.4 kB / 0.8808 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002943/0.007313, allocations: 216.7 kB / 0.881 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.007522, allocations: 103.7 kB / 0.8811 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 7.504e-05/0.007597, allocations: 40 kB / 0.8811 GB, free: 2.938 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.007716, allocations: 59.25 kB / 0.8812 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.911e-05/0.007806, allocations: 63.83 kB / 0.8812 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.007948, allocations: 103.8 kB / 0.8813 GB, free: 2.719 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005953/0.008544, allocations: 446.7 kB / 0.8818 GB, free: 2.281 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.008547, allocations: 0 / 0.8818 GB, free: 2.281 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.303e-06/0.008548, allocations: 0 / 0.8818 GB, free: 2.281 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.388e-06/0.008558, allocations: 4 kB / 0.8818 GB, free: 2.277 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009819/0.009539, allocations: 0.5983 MB / 0.8823 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.009575, allocations: 9.281 kB / 0.8824 GB, free: 1.625 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003094/0.009884, allocations: 60.77 kB / 0.8824 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.01029, allocations: 225.7 kB / 0.8826 GB, free: 1.32 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.01033, allocations: 20.88 kB / 0.8827 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.406e-05/0.01039, allocations: 32.38 kB / 0.8827 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.01092, allocations: 285 kB / 0.883 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.01093, allocations: 1.281 kB / 0.883 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.328e-05/0.01097, allocations: 16.36 kB / 0.883 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.01097, allocations: 4.375 kB / 0.883 GB, free: 0.9609 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003866/0.01136, allocations: 187.3 kB / 0.8832 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001503/0.01286, allocations: 0.8934 MB / 0.884 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005657/0.01343, allocations: 179.3 kB / 0.8842 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.0136, allocations: 95.52 kB / 0.8843 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.01363, allocations: 4 kB / 0.8843 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002851/0.01391, allocations: 152 kB / 0.8844 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=27): time 1.703e-06/0.01392, allocations: 0 / 0.8844 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of matching and sorting (n=27): time 0.0006001/0.01452, allocations: 281.2 kB / 0.8847 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.01457, allocations: 55.41 kB / 0.8848 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.01482, allocations: 257.7 kB / 0.885 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.16e-05/0.01488, allocations: 41.7 kB / 0.885 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.01505, allocations: 187.6 kB / 0.8852 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.161e-05/0.01514, allocations: 83.44 kB / 0.8853 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.01535, allocations: 131.3 kB / 0.8854 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.000291/0.01564, allocations: 0.5157 MB / 0.8859 GB, free: 13.8 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.01589, allocations: 137.5 kB / 0.8861 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.01623, allocations: 227.4 kB / 0.8863 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004248/0.01666, allocations: 286.1 kB / 0.8866 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.01666, allocations: 4 kB / 0.8866 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007072/0.01737, allocations: 413.9 kB / 0.887 GB, free: 12.65 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.93e-05/0.01742, allocations: 37.7 kB / 0.887 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.01743, allocations: 3.938 kB / 0.887 GB, free: 12.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.01744, allocations: 4 kB / 0.887 GB, free: 12.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.01759, allocations: 31.91 kB / 0.887 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.0176, allocations: 8.156 kB / 0.887 GB, free: 12.56 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.01782, allocations: 51.77 kB / 0.8871 GB, free: 12.51 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.464e-05/0.01785, allocations: 15.98 kB / 0.8871 GB, free: 12.49 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.sta.offToOn.enableFire,$PRE.sta.onToOff.enableFire,$whenCondition1,$whenCondition2,sta.onToOff.t_start,$PRE.sta.onToOff.t_start,sta.onToOff.fire,sta.onToOff.enableFire,sta.on.active,sta.on.oldActive,$PRE.sta.on.oldActive,sta.on.newActive,$PRE.sta.on.newActive,sta.on.localActive,$PRE.sta.on.localActive,sta.offToOn.t_start,$PRE.sta.offToOn.t_start,sta.offToOn.fire,sta.offToOn.enableFire,sta.off.active,sta.off.oldActive,$PRE.sta.off.oldActive,sta.off.newActive,$PRE.sta.off.newActive,sta.off.localActive,$PRE.sta.off.localActive,sta.stateGraphRoot.activeSteps,y1.y,$PRE.y1.y,$whenCondition3,$whenCondition4,sta.stateGraphRoot.resume,sta.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * 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.0002201/0.01807, allocations: 212.5 kB / 0.8873 GB, free: 12.28 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.295e-05/0.01813, allocations: 35.89 kB / 0.8873 GB, free: 12.24 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.831e-05/0.01819, allocations: 17.97 kB / 0.8874 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.01819, allocations: 4 kB / 0.8874 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.0182, allocations: 4 kB / 0.8874 GB, free: 12.22 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.964e-06/0.0182, allocations: 3.938 kB / 0.8874 GB, free: 12.22 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.01933, allocations: 0.6271 MB / 0.888 GB, free: 11.55 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.01934, allocations: 0 / 0.888 GB, free: 11.55 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.531e-05/0.01942, allocations: 23.92 kB / 0.888 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.01943, allocations: 3.938 kB / 0.888 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.01944, allocations: 4 kB / 0.888 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.01945, allocations: 4 kB / 0.888 GB, free: 11.51 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.01945, allocations: 0 / 0.888 GB, free: 11.51 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004782/0.01993, allocations: 368.5 kB / 0.8884 GB, free: 11.13 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.661e-05/0.01995, allocations: 27.78 kB / 0.8884 GB, free: 11.11 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/0.01999, allocations: 11.92 kB / 0.8884 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.365e-05/0.02008, allocations: 8 kB / 0.8884 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.125e-05/0.02017, allocations: 31.95 kB / 0.8884 GB, free: 11.05 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.02019, allocations: 4 kB / 0.8884 GB, free: 11.05 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001115/0.0203, allocations: 149.8 kB / 0.8886 GB, free: 10.91 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.1e-08/0.0203, allocations: 0 / 0.8886 GB, free: 10.91 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003274/0.02063, allocations: 67.88 kB / 0.8886 GB, free: 10.84 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.localActive,sta.off.newActive,sta.off.oldActive,sta.offToOn.fire,sta.offToOn.t_start,sta.on.localActive,sta.on.newActive,sta.on.oldActive,sta.onToOff.fire,sta.onToOff.t_start) * Number of discrete states: 2 (sta.off.newActive,sta.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001991/0.02082, allocations: 111.2 kB / 0.8888 GB, free: 10.72 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006037/0.02143, allocations: 361.7 kB / 0.8891 GB, free: 10.34 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.02143, allocations: 0 / 0.8891 GB, free: 10.34 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.02163, allocations: 112 kB / 0.8892 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.02197, allocations: 27.98 kB / 0.8892 GB, free: 10.2 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007942/0.02277, allocations: 404.8 kB / 0.8896 GB, free: 9.777 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001682/0.02293, allocations: 130 kB / 0.8897 GB, free: 9.629 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 8.653e-05/0.02302, allocations: 25.94 kB / 0.8898 GB, free: 9.605 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.967e-05/0.02309, allocations: 28.5 kB / 0.8898 GB, free: 9.578 MB / 0.8542 GB Notification: Performance of SimCode: time 4.91e-07/0.02309, allocations: 0 / 0.8898 GB, free: 9.578 MB / 0.8542 GB Notification: Performance of Templates: time 0.007409/0.0305, allocations: 2.782 MB / 0.8925 GB, free: 6.852 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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: 8.740998659981415]