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.0007947/0.0007947, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 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.000847/0.000847, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.874/0.874, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.699/1.699, allocations: 377.8 MB / 0.6221 GB, free: 8.637 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: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 0.9809 GB, free: 2.605 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.648e-05/1.773e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.602 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002044/0.002061, allocations: 1.757 MB / 0.9827 GB, free: 0.8359 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0008362/0.002898, allocations: 0.6931 MB / 0.9833 GB, free: 144 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.893e-05/0.002976, allocations: 7.938 kB / 0.9833 GB, free: 136 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.003085, allocations: 31.67 kB / 0.9834 GB, free: 104 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 4.527e-05/0.00313, allocations: 23.69 kB / 0.9834 GB, free: 80 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005608/0.003691, allocations: 265.5 kB / 0.9837 GB, free: 15.82 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003211/0.004012, allocations: 423.2 kB / 0.9841 GB, free: 15.41 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.004217, allocations: 175.4 kB / 0.9842 GB, free: 15.23 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.004367, allocations: 203.7 kB / 0.9844 GB, free: 15.04 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.004489, allocations: 99.72 kB / 0.9845 GB, free: 14.94 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 4.172e-05/0.004531, allocations: 40 kB / 0.9845 GB, free: 14.9 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 8.018e-05/0.004611, allocations: 59.97 kB / 0.9846 GB, free: 14.84 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 5.179e-05/0.004663, allocations: 63.81 kB / 0.9847 GB, free: 14.78 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 8.187e-05/0.004744, allocations: 107.7 kB / 0.9848 GB, free: 14.67 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.005064, allocations: 454.6 kB / 0.9852 GB, free: 14.23 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.005065, allocations: 7.938 kB / 0.9852 GB, free: 14.22 MB / 0.948 GB Notification: Performance of FrontEnd: time 8.02e-07/0.005066, allocations: 0 / 0.9852 GB, free: 14.22 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.005071, allocations: 4 kB / 0.9852 GB, free: 14.21 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.0005386/0.005609, allocations: 486.7 kB / 0.9857 GB, free: 13.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.005641, allocations: 8.031 kB / 0.9857 GB, free: 13.69 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.005681, allocations: 54.73 kB / 0.9857 GB, free: 13.63 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.00584, allocations: 44.77 kB / 0.9858 GB, free: 13.59 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.006078, allocations: 201.4 kB / 0.986 GB, free: 13.36 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.006104, allocations: 28.88 kB / 0.986 GB, free: 13.34 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.177e-05/0.006136, allocations: 32.38 kB / 0.986 GB, free: 13.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.006428, allocations: 271.3 kB / 0.9863 GB, free: 13.03 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.006437, allocations: 192 / 0.9863 GB, free: 13.03 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.006454, allocations: 12.36 kB / 0.9863 GB, free: 13.02 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.006461, allocations: 12.12 kB / 0.9863 GB, free: 13.01 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.006673, allocations: 177.9 kB / 0.9865 GB, free: 12.84 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006913/0.007364, allocations: 0.7372 MB / 0.9872 GB, free: 12.05 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002073/0.007572, allocations: 162.8 kB / 0.9874 GB, free: 11.88 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.816e-05/0.00765, allocations: 76.83 kB / 0.9874 GB, free: 11.8 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.007666, allocations: 8 kB / 0.9874 GB, free: 11.8 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001572/0.007823, allocations: 146.3 kB / 0.9876 GB, free: 11.64 MB / 0.948 GB Notification: Performance of pre-optimization done (n=27): time 1.573e-06/0.007824, allocations: 0 / 0.9876 GB, free: 11.64 MB / 0.948 GB Notification: Performance of matching and sorting (n=27): time 0.000328/0.008152, allocations: 273 kB / 0.9878 GB, free: 11.37 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.008184, allocations: 55.41 kB / 0.9879 GB, free: 11.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.921e-05/0.008273, allocations: 161.7 kB / 0.988 GB, free: 11.14 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.008301, allocations: 41.69 kB / 0.9881 GB, free: 11.09 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.692e-05/0.008367, allocations: 140.8 kB / 0.9882 GB, free: 10.95 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.008405, allocations: 75.42 kB / 0.9883 GB, free: 10.87 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.276e-05/0.008498, allocations: 89.67 kB / 0.9884 GB, free: 10.78 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.805e-05/0.008576, allocations: 334.8 kB / 0.9887 GB, free: 10.44 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.008708, allocations: 125.7 kB / 0.9888 GB, free: 10.31 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001474/0.008855, allocations: 189.5 kB / 0.989 GB, free: 10.09 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.009064, allocations: 243.1 kB / 0.9892 GB, free: 9.828 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.009066, allocations: 0 / 0.9892 GB, free: 9.828 MB / 0.948 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003553/0.009421, allocations: 393.8 kB / 0.9896 GB, free: 9.426 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.009445, allocations: 33.7 kB / 0.9896 GB, free: 9.387 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.00945, allocations: 4 kB / 0.9896 GB, free: 9.383 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.009463, allocations: 7.938 kB / 0.9896 GB, free: 9.375 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.786e-05/0.00954, allocations: 31.92 kB / 0.9897 GB, free: 9.344 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.009546, allocations: 0 / 0.9897 GB, free: 9.344 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.009664, allocations: 52.06 kB / 0.9897 GB, free: 9.293 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.009681, allocations: 16 kB / 0.9897 GB, free: 9.277 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.0001029/0.009784, allocations: 169.7 kB / 0.9899 GB, free: 9.105 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.009798, allocations: 19.84 kB / 0.9899 GB, free: 9.086 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.356e-05/0.009832, allocations: 21.97 kB / 0.9899 GB, free: 9.066 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.009835, allocations: 3.938 kB / 0.9899 GB, free: 9.062 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.009839, allocations: 0 / 0.9899 GB, free: 9.062 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.009844, allocations: 11.98 kB / 0.99 GB, free: 9.051 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004711/0.01031, allocations: 0.5845 MB / 0.9905 GB, free: 8.414 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.01032, allocations: 0 / 0.9905 GB, free: 8.414 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.538e-05/0.01035, allocations: 12 kB / 0.9905 GB, free: 8.402 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.01035, allocations: 0 / 0.9905 GB, free: 8.402 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.01037, allocations: 15.98 kB / 0.9906 GB, free: 8.387 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.01037, allocations: 0 / 0.9906 GB, free: 8.387 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.01037, allocations: 0 / 0.9906 GB, free: 8.387 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.01057, allocations: 312 kB / 0.9909 GB, free: 8.066 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.101e-05/0.01059, allocations: 15.84 kB / 0.9909 GB, free: 8.051 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.0106, allocations: 12 kB / 0.9909 GB, free: 8.039 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.55e-05/0.01065, allocations: 7.984 kB / 0.9909 GB, free: 8.031 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.496e-05/0.0107, allocations: 27.95 kB / 0.9909 GB, free: 8.004 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.01071, allocations: 8 kB / 0.9909 GB, free: 7.996 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.136e-05/0.01075, allocations: 101.6 kB / 0.991 GB, free: 7.898 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.01075, allocations: 3.938 kB / 0.991 GB, free: 7.895 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002026/0.01096, allocations: 63.83 kB / 0.9911 GB, free: 7.832 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.0004162/0.01137, allocations: 0.8565 MB / 0.9919 GB, free: 6.949 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002946/0.01167, allocations: 310.7 kB / 0.9922 GB, free: 6.629 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01167, allocations: 0 / 0.9922 GB, free: 6.629 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.601e-05/0.01175, allocations: 91.83 kB / 0.9923 GB, free: 6.539 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001985/0.01195, allocations: 23.98 kB / 0.9923 GB, free: 6.516 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.01373, allocations: 2.503 MB / 0.9948 GB, free: 3.859 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.122e-05/0.01381, allocations: 133.6 kB / 0.9949 GB, free: 3.707 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 5.53e-05/0.01386, allocations: 21.95 kB / 0.9949 GB, free: 3.68 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.365e-05/0.01394, allocations: 68.47 kB / 0.995 GB, free: 3.613 MB / 0.948 GB Notification: Performance of SimCode: time 5.81e-07/0.01394, allocations: 0 / 0.995 GB, free: 3.613 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01595/0.02989, allocations: 5.575 MB / 1 GB, free: 14.22 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.673/6.703, allocations: 12.7 kB / 1 GB, free: 14.21 MB / 0.9636 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 420.0] 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: 10.669849454425275]