Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009787/0.0009787, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.0008021/0.0008021, allocations: 178.2 kB / 23.22 MB, free: 1.348 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.9075/0.9075, allocations: 177.1 MB / 203.5 MB, free: 5.762 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.739/1.739, allocations: 377.8 MB / 0.6228 GB, free: 8.645 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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_12_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_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 0.9822 GB, free: 2.102 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.553e-05/1.739e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.098 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.001981/0.001998, allocations: 1.77 MB / 0.9839 GB, free: 324 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.00088/0.002878, allocations: 0.6853 MB / 0.9846 GB, free: 15.63 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.054e-05/0.002969, allocations: 11.94 kB / 0.9846 GB, free: 15.62 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.003082, allocations: 31.61 kB / 0.9846 GB, free: 15.59 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 4.812e-05/0.003131, allocations: 23.69 kB / 0.9846 GB, free: 15.56 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005238/0.003654, allocations: 265.7 kB / 0.9849 GB, free: 15.3 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003265/0.003981, allocations: 419.2 kB / 0.9853 GB, free: 14.89 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.004198, allocations: 177.8 kB / 0.9855 GB, free: 14.72 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.004349, allocations: 203.7 kB / 0.9856 GB, free: 14.52 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.004477, allocations: 103.7 kB / 0.9857 GB, free: 14.42 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.666e-05/0.004514, allocations: 40 kB / 0.9858 GB, free: 14.38 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 8.04e-05/0.004594, allocations: 55.97 kB / 0.9858 GB, free: 14.33 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.004813, allocations: 75.75 kB / 0.9859 GB, free: 14.25 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 8.514e-05/0.004898, allocations: 95.8 kB / 0.986 GB, free: 14.16 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.005236, allocations: 454.6 kB / 0.9864 GB, free: 13.71 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.005239, allocations: 0 / 0.9864 GB, free: 13.71 MB / 0.948 GB Notification: Performance of FrontEnd: time 9.62e-07/0.00524, allocations: 0 / 0.9864 GB, free: 13.71 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.005244, allocations: 4 kB / 0.9864 GB, free: 13.71 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006255/0.00587, allocations: 490.7 kB / 0.9869 GB, free: 13.19 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.005902, allocations: 8.031 kB / 0.9869 GB, free: 13.18 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/0.006094, allocations: 40.73 kB / 0.987 GB, free: 13.14 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.006342, allocations: 205.2 kB / 0.9871 GB, free: 12.92 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.854e-05/0.00637, allocations: 24.88 kB / 0.9872 GB, free: 12.9 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.006404, allocations: 32.38 kB / 0.9872 GB, free: 12.87 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003138/0.006718, allocations: 275.2 kB / 0.9875 GB, free: 12.59 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.006728, allocations: 192 / 0.9875 GB, free: 12.59 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.006745, allocations: 8.375 kB / 0.9875 GB, free: 12.58 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.006753, allocations: 12.38 kB / 0.9875 GB, free: 12.57 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002177/0.00697, allocations: 185.8 kB / 0.9877 GB, free: 12.39 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007227/0.007693, allocations: 0.6987 MB / 0.9883 GB, free: 11.66 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002048/0.007898, allocations: 154.8 kB / 0.9885 GB, free: 11.5 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.216e-05/0.00798, allocations: 76.83 kB / 0.9886 GB, free: 11.42 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.007997, allocations: 4 kB / 0.9886 GB, free: 11.41 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001579/0.008155, allocations: 141.2 kB / 0.9887 GB, free: 11.26 MB / 0.948 GB Notification: Performance of pre-optimization done (n=27): time 1.183e-06/0.008156, allocations: 0 / 0.9887 GB, free: 11.26 MB / 0.948 GB Notification: Performance of matching and sorting (n=27): time 0.0003425/0.008498, allocations: 271.6 kB / 0.989 GB, free: 10.99 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.008532, allocations: 59.41 kB / 0.989 GB, free: 10.92 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.537e-05/0.008627, allocations: 172.2 kB / 0.9892 GB, free: 10.75 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.008658, allocations: 41.69 kB / 0.9892 GB, free: 10.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 7.495e-05/0.008733, allocations: 136.8 kB / 0.9894 GB, free: 10.56 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 4.018e-05/0.008773, allocations: 75.42 kB / 0.9894 GB, free: 10.48 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.273e-05/0.008856, allocations: 85.67 kB / 0.9895 GB, free: 10.39 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.75e-05/0.008943, allocations: 338.8 kB / 0.9898 GB, free: 10.05 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.009078, allocations: 121.7 kB / 0.9899 GB, free: 9.93 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.009231, allocations: 193.5 kB / 0.9901 GB, free: 9.707 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/0.009456, allocations: 250.9 kB / 0.9904 GB, free: 9.434 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.009459, allocations: 0 / 0.9904 GB, free: 9.434 MB / 0.948 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003739/0.009832, allocations: 382.2 kB / 0.9907 GB, free: 9.043 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.009861, allocations: 37.73 kB / 0.9908 GB, free: 9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.009866, allocations: 4 kB / 0.9908 GB, free: 8.996 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.009878, allocations: 4 kB / 0.9908 GB, free: 8.992 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.203e-05/0.00996, allocations: 27.92 kB / 0.9908 GB, free: 8.965 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.009969, allocations: 7.938 kB / 0.9908 GB, free: 8.957 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.0101, allocations: 51.8 kB / 0.9909 GB, free: 8.906 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.01012, allocations: 16 kB / 0.9909 GB, free: 8.891 MB / 0.948 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.0001281/0.01025, allocations: 181.6 kB / 0.9911 GB, free: 8.707 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.01026, allocations: 15.91 kB / 0.9911 GB, free: 8.691 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.0103, allocations: 17.97 kB / 0.9911 GB, free: 8.676 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.0103, allocations: 4 kB / 0.9911 GB, free: 8.672 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.0103, allocations: 3.938 kB / 0.9911 GB, free: 8.668 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.01031, allocations: 3.984 kB / 0.9911 GB, free: 8.664 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005131/0.01082, allocations: 0.5265 MB / 0.9916 GB, free: 8.098 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.01082, allocations: 4 kB / 0.9916 GB, free: 8.094 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.01086, allocations: 23.98 kB / 0.9916 GB, free: 8.07 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.01087, allocations: 7.938 kB / 0.9916 GB, free: 8.062 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.01088, allocations: 0 / 0.9916 GB, free: 8.062 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.01088, allocations: 4 kB / 0.9916 GB, free: 8.059 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.01088, allocations: 0 / 0.9916 GB, free: 8.059 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002262/0.01111, allocations: 304.1 kB / 0.9919 GB, free: 7.746 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.746e-05/0.01113, allocations: 23.83 kB / 0.992 GB, free: 7.723 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.01115, allocations: 4 kB / 0.992 GB, free: 7.719 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.609e-05/0.01119, allocations: 8 kB / 0.992 GB, free: 7.711 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.808e-05/0.01126, allocations: 27.95 kB / 0.992 GB, free: 7.684 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.01127, allocations: 11.94 kB / 0.992 GB, free: 7.672 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.86e-05/0.01132, allocations: 113.9 kB / 0.9921 GB, free: 7.562 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.01132, allocations: 0 / 0.9921 GB, free: 7.562 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002137/0.01153, allocations: 63.83 kB / 0.9922 GB, free: 7.5 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: 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.0001317/0.01166, allocations: 114.9 kB / 0.9923 GB, free: 7.379 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003367/0.012, allocations: 302 kB / 0.9926 GB, free: 7.066 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.012, allocations: 448 / 0.9926 GB, free: 7.066 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 9.313e-05/0.0121, allocations: 87.91 kB / 0.9927 GB, free: 6.98 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.01232, allocations: 27.92 kB / 0.9927 GB, free: 6.953 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005145/0.01283, allocations: 413.9 kB / 0.9931 GB, free: 6.52 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.375e-05/0.01292, allocations: 137.3 kB / 0.9932 GB, free: 6.359 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.563e-05/0.01297, allocations: 24.5 kB / 0.9932 GB, free: 6.336 MB / 0.948 GB Notification: Performance of SimCode: time 4.91e-07/0.01297, allocations: 0 / 0.9932 GB, free: 6.336 MB / 0.948 GB Notification: Performance of Templates: time 0.003681/0.01665, allocations: 2.972 MB / 0.9961 GB, free: 3.371 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 6.768597179092467]