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.001298/0.001298, allocations: 81.5 kB / 19.18 MB, free: 2.523 MB / 14.72 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.001434/0.001434, allocations: 164.8 kB / 22.45 MB, free: 5.375 MB / 14.72 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.536/1.536, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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 2.931/2.931, allocations: 377.8 MB / 0.6221 GB, free: 12.52 MB / 0.5919 GB " [Timeout remaining time 176] 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 3.707e-06/3.707e-06, allocations: 0 / 0.9814 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 5.377e-05/5.748e-05, allocations: 6.219 kB / 0.9814 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.006329/0.006387, allocations: 1.766 MB / 0.9831 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002288/0.008674, allocations: 0.7008 MB / 0.9838 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.008843, allocations: 7.938 kB / 0.9838 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002098/0.009053, allocations: 27.67 kB / 0.9838 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.009166, allocations: 23.8 kB / 0.9839 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001409/0.01057, allocations: 267.2 kB / 0.9841 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007846/0.01136, allocations: 419.2 kB / 0.9845 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000422/0.01178, allocations: 167.3 kB / 0.9847 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003591/0.01214, allocations: 203.7 kB / 0.9849 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.01239, allocations: 99.72 kB / 0.985 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 8.329e-05/0.01247, allocations: 40 kB / 0.985 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.01264, allocations: 63.86 kB / 0.9851 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.01277, allocations: 79.8 kB / 0.9851 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.01295, allocations: 99.8 kB / 0.9852 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007307/0.01368, allocations: 438.8 kB / 0.9857 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.01368, allocations: 0 / 0.9857 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.723e-06/0.01368, allocations: 3.938 kB / 0.9857 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.348e-06/0.01369, allocations: 3.984 kB / 0.9857 GB, free: 7.523 MB / 0.9356 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.001102/0.0148, allocations: 494.7 kB / 0.9861 GB, free: 7 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.01485, allocations: 12.03 kB / 0.9861 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004289/0.01528, allocations: 36.78 kB / 0.9862 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000524/0.0158, allocations: 205.4 kB / 0.9864 GB, free: 6.727 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.495e-05/0.01586, allocations: 20.88 kB / 0.9864 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.751e-05/0.01593, allocations: 28.38 kB / 0.9864 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006704/0.0166, allocations: 279.3 kB / 0.9867 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.01662, allocations: 192 / 0.9867 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.445e-05/0.01665, allocations: 8.375 kB / 0.9867 GB, free: 6.391 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.01666, allocations: 8.312 kB / 0.9867 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.01711, allocations: 185.9 kB / 0.9869 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.01854, allocations: 0.6909 MB / 0.9876 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004546/0.01899, allocations: 166.8 kB / 0.9877 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.01918, allocations: 80.77 kB / 0.9878 GB, free: 5.223 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.01921, allocations: 4 kB / 0.9878 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003301/0.01954, allocations: 141.2 kB / 0.9879 GB, free: 5.066 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=27): time 2.004e-06/0.01954, allocations: 0 / 0.9879 GB, free: 5.066 MB / 0.9356 GB Notification: Performance of matching and sorting (n=27): time 0.0007312/0.02028, allocations: 267.6 kB / 0.9882 GB, free: 4.801 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.021e-05/0.02034, allocations: 59.34 kB / 0.9882 GB, free: 4.73 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/0.02053, allocations: 172 kB / 0.9884 GB, free: 4.555 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.791e-05/0.0206, allocations: 45.7 kB / 0.9885 GB, free: 4.504 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.02075, allocations: 140.8 kB / 0.9886 GB, free: 4.363 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.674e-05/0.02084, allocations: 71.42 kB / 0.9887 GB, free: 4.293 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001869/0.02102, allocations: 93.67 kB / 0.9887 GB, free: 4.195 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001855/0.02121, allocations: 330.8 kB / 0.9891 GB, free: 3.863 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003082/0.02152, allocations: 125.7 kB / 0.9892 GB, free: 3.734 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/0.02188, allocations: 192.8 kB / 0.9894 GB, free: 3.512 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004982/0.02238, allocations: 243.1 kB / 0.9896 GB, free: 3.246 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.02239, allocations: 4 kB / 0.9896 GB, free: 3.242 MB / 0.9356 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008702/0.02326, allocations: 381.9 kB / 0.99 GB, free: 2.852 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.229e-05/0.02332, allocations: 41.69 kB / 0.99 GB, free: 2.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.02333, allocations: 0 / 0.99 GB, free: 2.805 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.02335, allocations: 4 kB / 0.99 GB, free: 2.801 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.02355, allocations: 27.92 kB / 0.99 GB, free: 2.773 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.02356, allocations: 12.16 kB / 0.99 GB, free: 2.762 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.02391, allocations: 55.73 kB / 0.9901 GB, free: 2.707 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.02395, allocations: 16 kB / 0.9901 GB, free: 2.691 MB / 0.9356 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.0002464/0.0242, allocations: 169.8 kB / 0.9903 GB, free: 2.52 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.827e-05/0.02424, allocations: 15.91 kB / 0.9903 GB, free: 2.504 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.827e-05/0.02432, allocations: 17.97 kB / 0.9903 GB, free: 2.484 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.02432, allocations: 8 kB / 0.9903 GB, free: 2.477 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.02433, allocations: 3.938 kB / 0.9903 GB, free: 2.473 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.02434, allocations: 3.984 kB / 0.9903 GB, free: 2.469 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.02539, allocations: 0.5264 MB / 0.9908 GB, free: 1.902 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.02539, allocations: 3.938 kB / 0.9908 GB, free: 1.898 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.02551, allocations: 19.92 kB / 0.9909 GB, free: 1.879 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.02552, allocations: 3.938 kB / 0.9909 GB, free: 1.875 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.02554, allocations: 8 kB / 0.9909 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.02554, allocations: 0 / 0.9909 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.02555, allocations: 0 / 0.9909 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005069/0.02605, allocations: 312.3 kB / 0.9912 GB, free: 1.547 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 2.777e-05/0.02608, allocations: 23.72 kB / 0.9912 GB, free: 1.523 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.374e-05/0.02612, allocations: 11.98 kB / 0.9912 GB, free: 1.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.02626, allocations: 8 kB / 0.9912 GB, free: 1.504 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.02638, allocations: 23.95 kB / 0.9912 GB, free: 1.48 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.0264, allocations: 12 kB / 0.9912 GB, free: 1.469 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001083/0.02651, allocations: 95.27 kB / 0.9913 GB, free: 1.375 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.02651, allocations: 0 / 0.9913 GB, free: 1.375 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005393/0.02705, allocations: 67.88 kB / 0.9914 GB, free: 1.309 MB / 0.9356 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.000229/0.02728, allocations: 119 kB / 0.9915 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006917/0.02797, allocations: 305.4 kB / 0.9918 GB, free: 0.8672 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.02797, allocations: 3.938 kB / 0.9918 GB, free: 0.8633 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002136/0.02819, allocations: 87.89 kB / 0.9919 GB, free: 0.7773 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005022/0.02869, allocations: 32.41 kB / 0.9919 GB, free: 0.7461 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009801/0.02967, allocations: 387.3 kB / 0.9923 GB, free: 352 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.02986, allocations: 125.6 kB / 0.9924 GB, free: 200 kB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001242/0.02998, allocations: 29.94 kB / 0.9924 GB, free: 168 kB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.298e-05/0.03006, allocations: 24.5 kB / 0.9925 GB, free: 144 kB / 0.9356 GB Notification: Performance of SimCode: time 5.91e-07/0.03006, allocations: 0 / 0.9925 GB, free: 144 kB / 0.9356 GB Notification: Performance of Templates: time 0.009221/0.03929, allocations: 2.763 MB / 0.9952 GB, free: 13.43 MB / 0.9512 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: 8.568719513714314]