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.001421/0.001421, allocations: 88.72 kB / 19.44 MB, free: 356 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.001678/0.001678, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.513/1.513, allocations: 177.1 MB / 203.1 MB, free: 5.605 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.298/3.298, allocations: 429.6 MB / 0.673 GB, free: 3.879 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.703e-06/1.703e-06, allocations: 0 / 0.8776 GB, free: 6.531 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.975e-05/3.145e-05, allocations: 2.812 kB / 0.8776 GB, free: 6.527 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00366/0.003692, allocations: 1.764 MB / 0.8793 GB, free: 4.777 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001614/0.005306, allocations: 0.6947 MB / 0.88 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.005444, allocations: 7.938 kB / 0.88 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.005627, allocations: 31.67 kB / 0.88 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.901e-05/0.005726, allocations: 28.77 kB / 0.88 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009528/0.006678, allocations: 256.5 kB / 0.8803 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0007225/0.007401, allocations: 416.4 kB / 0.8807 GB, free: 3.359 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004373/0.007838, allocations: 176.1 kB / 0.8808 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003916/0.00823, allocations: 208.6 kB / 0.881 GB, free: 2.98 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.008466, allocations: 99.72 kB / 0.8811 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 8.249e-05/0.008549, allocations: 40 kB / 0.8812 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.008693, allocations: 60.67 kB / 0.8812 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.008802, allocations: 75.8 kB / 0.8813 GB, free: 2.711 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.008985, allocations: 100.3 kB / 0.8814 GB, free: 2.613 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0007004/0.009685, allocations: 458.1 kB / 0.8818 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.00969, allocations: 0 / 0.8818 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.963e-06/0.009692, allocations: 0 / 0.8818 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.471e-05/0.009707, allocations: 0 / 0.8818 GB, free: 2.168 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.001234/0.01094, allocations: 482.7 kB / 0.8823 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.01099, allocations: 12.03 kB / 0.8823 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003801/0.01137, allocations: 64.7 kB / 0.8824 GB, free: 1.582 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005746/0.01194, allocations: 218.5 kB / 0.8826 GB, free: 1.344 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.26e-05/0.01199, allocations: 29.47 kB / 0.8826 GB, free: 1.316 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/0.01205, allocations: 32.36 kB / 0.8826 GB, free: 1.285 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005796/0.01263, allocations: 272.1 kB / 0.8829 GB, free: 1.012 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.01265, allocations: 192 / 0.8829 GB, free: 1.012 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.01268, allocations: 17.14 kB / 0.8829 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.01269, allocations: 4.375 kB / 0.8829 GB, free: 0.9922 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004228/0.01311, allocations: 187.4 kB / 0.8831 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.01448, allocations: 0.7065 MB / 0.8838 GB, free: 68 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004168/0.01489, allocations: 157.7 kB / 0.8839 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.01506, allocations: 84.83 kB / 0.884 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.211e-05/0.01509, allocations: 4 kB / 0.884 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003087/0.0154, allocations: 150.2 kB / 0.8842 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=27): time 1.934e-06/0.0154, allocations: 0 / 0.8842 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of matching and sorting (n=27): time 0.0006859/0.01609, allocations: 277.2 kB / 0.8844 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.577e-05/0.01615, allocations: 59.41 kB / 0.8845 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.01636, allocations: 168.2 kB / 0.8847 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 6.815e-05/0.01643, allocations: 45.69 kB / 0.8847 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.01657, allocations: 136.8 kB / 0.8848 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.919e-05/0.01667, allocations: 71.42 kB / 0.8849 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.01684, allocations: 97.66 kB / 0.885 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002091/0.01705, allocations: 326.8 kB / 0.8853 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002666/0.01731, allocations: 125.7 kB / 0.8854 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.01764, allocations: 188.8 kB / 0.8856 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004347/0.01807, allocations: 243.5 kB / 0.8858 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.01808, allocations: 7.938 kB / 0.8858 GB, free: 13.83 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007983/0.01887, allocations: 405.8 kB / 0.8862 GB, free: 13.42 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.4e-05/0.01893, allocations: 33.7 kB / 0.8863 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.01894, allocations: 4 kB / 0.8863 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.77e-05/0.01897, allocations: 4 kB / 0.8863 GB, free: 13.37 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.01912, allocations: 27.92 kB / 0.8863 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.01914, allocations: 11.92 kB / 0.8863 GB, free: 13.33 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.01943, allocations: 55.97 kB / 0.8864 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.01947, allocations: 16 kB / 0.8864 GB, free: 13.26 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.0002381/0.0197, allocations: 173.7 kB / 0.8865 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.944e-05/0.01975, allocations: 23.91 kB / 0.8866 GB, free: 13.06 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.493e-05/0.01982, allocations: 25.95 kB / 0.8866 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.01982, allocations: 4 kB / 0.8866 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.01983, allocations: 7.938 kB / 0.8866 GB, free: 13.03 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.01984, allocations: 0 / 0.8866 GB, free: 13.03 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.02085, allocations: 0.5258 MB / 0.8871 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.02086, allocations: 0 / 0.8871 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.404e-05/0.02095, allocations: 16 kB / 0.8871 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.02096, allocations: 3.938 kB / 0.8871 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.02098, allocations: 7.984 kB / 0.8871 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.02098, allocations: 3.938 kB / 0.8871 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.02098, allocations: 0 / 0.8871 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.02147, allocations: 316.1 kB / 0.8874 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.276e-05/0.0215, allocations: 19.83 kB / 0.8875 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.02154, allocations: 4 kB / 0.8875 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.02165, allocations: 15.98 kB / 0.8875 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.448e-05/0.02174, allocations: 27.95 kB / 0.8875 GB, free: 12.04 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.02176, allocations: 8 kB / 0.8875 GB, free: 12.04 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.001e-05/0.02185, allocations: 101.6 kB / 0.8876 GB, free: 11.94 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.02185, allocations: 0 / 0.8876 GB, free: 11.94 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003648/0.02221, allocations: 63.84 kB / 0.8877 GB, free: 11.88 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.0002256/0.02244, allocations: 127.2 kB / 0.8878 GB, free: 11.74 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0005732/0.02301, allocations: 301.5 kB / 0.8881 GB, free: 11.43 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.02302, allocations: 0 / 0.8881 GB, free: 11.43 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.02319, allocations: 84.38 kB / 0.8882 GB, free: 11.35 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.02356, allocations: 31.92 kB / 0.8882 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008738/0.02444, allocations: 396.1 kB / 0.8886 GB, free: 10.9 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.0246, allocations: 129.6 kB / 0.8887 GB, free: 10.75 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001026/0.0247, allocations: 29.92 kB / 0.8887 GB, free: 10.72 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.238e-05/0.02477, allocations: 28.5 kB / 0.8888 GB, free: 10.7 MB / 0.8542 GB Notification: Performance of SimCode: time 8.41e-07/0.02477, allocations: 0 / 0.8888 GB, free: 10.7 MB / 0.8542 GB Notification: Performance of Templates: time 0.007903/0.03268, allocations: 2.763 MB / 0.8914 GB, free: 7.984 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 800] 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.482430028030649]