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.001431/0.001431, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001628/0.001628, allocations: 219.7 kB / 22.26 MB, free: 5.125 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.562/1.562, allocations: 230.6 MB / 256 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.344/3.344, allocations: 0.49 GB / 0.7951 GB, free: 33.36 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00259/0.00259, allocations: 67.67 kB / 1.154 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.4138, allocations: 176.1 MB / 1.326 GB, free: 1.98 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.004612/0.4185, allocations: 1.804 MB / 1.328 GB, free: 172 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002123/0.4206, allocations: 0.7129 MB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.4208, allocations: 7.938 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002067/0.421, allocations: 31.67 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.4211, allocations: 23.75 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.4222, allocations: 266.7 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0009029/0.4231, allocations: 407.4 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006158/0.4237, allocations: 193.6 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/0.424, allocations: 139.6 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003274/0.4243, allocations: 135.5 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 9.765e-05/0.4244, allocations: 40 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.4246, allocations: 55.98 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002087/0.4248, allocations: 75.81 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000224/0.425, allocations: 139.4 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006881/0.4257, allocations: 418.5 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4257, allocations: 0 / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4257, allocations: 0 / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.387e-05/0.4257, allocations: 0 / 1.33 GB, free: 13.56 MB / 1.029 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.001134/0.4269, allocations: 498.6 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.4269, allocations: 12.03 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.427, allocations: 58.72 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003927/0.4274, allocations: 40.78 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005356/0.4279, allocations: 202.2 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.437e-05/0.428, allocations: 24.88 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.88e-05/0.4281, allocations: 36.36 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007005/0.4288, allocations: 267.3 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.4288, allocations: 3.938 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.4288, allocations: 12 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.4288, allocations: 4 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000515/0.4294, allocations: 185.8 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.4312, allocations: 0.8191 MB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004442/0.4316, allocations: 154.8 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.4318, allocations: 84.77 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.4319, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000351/0.4322, allocations: 153.7 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 4.619e-06/0.4322, allocations: 3.984 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0007168/0.4329, allocations: 267.6 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.254e-05/0.433, allocations: 59.41 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.4332, allocations: 159.4 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.653e-05/0.4333, allocations: 45.69 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.4334, allocations: 140.8 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.754e-05/0.4335, allocations: 63.48 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.4337, allocations: 97.61 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002163/0.434, allocations: 330.8 kB / 1.334 GB, free: 9.688 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.4342, allocations: 99.95 kB / 1.334 GB, free: 9.59 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003489/0.4346, allocations: 163.5 kB / 1.334 GB, free: 9.402 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005283/0.4351, allocations: 248.8 kB / 1.334 GB, free: 9.129 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.4351, allocations: 0 / 1.334 GB, free: 9.129 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001011/0.4361, allocations: 364.1 kB / 1.335 GB, free: 8.762 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.4362, allocations: 33.7 kB / 1.335 GB, free: 8.723 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.4362, allocations: 0 / 1.335 GB, free: 8.723 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.914e-05/0.4362, allocations: 7.984 kB / 1.335 GB, free: 8.715 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.4364, allocations: 35.92 kB / 1.335 GB, free: 8.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.017e-05/0.4364, allocations: 7.938 kB / 1.335 GB, free: 8.672 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.4368, allocations: 48.03 kB / 1.335 GB, free: 8.625 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.386e-05/0.4368, allocations: 20 kB / 1.335 GB, free: 8.605 MB / 1.029 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.0003634/0.4372, allocations: 170.2 kB / 1.335 GB, free: 8.434 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.391e-05/0.4372, allocations: 19.84 kB / 1.335 GB, free: 8.414 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.817e-05/0.4373, allocations: 21.95 kB / 1.335 GB, free: 8.391 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.4373, allocations: 4 kB / 1.335 GB, free: 8.387 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.4373, allocations: 0 / 1.335 GB, free: 8.387 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.4373, allocations: 0 / 1.335 GB, free: 8.387 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.4385, allocations: 0.5953 MB / 1.336 GB, free: 7.738 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.4386, allocations: 0 / 1.336 GB, free: 7.738 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.4387, allocations: 15.98 kB / 1.336 GB, free: 7.723 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.4387, allocations: 3.938 kB / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.4387, allocations: 8 kB / 1.336 GB, free: 7.711 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4387, allocations: 0 / 1.336 GB, free: 7.711 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4387, allocations: 0 / 1.336 GB, free: 7.711 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000518/0.4392, allocations: 313.2 kB / 1.336 GB, free: 7.391 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.101e-05/0.4392, allocations: 23.84 kB / 1.336 GB, free: 7.367 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.155e-05/0.4393, allocations: 7.984 kB / 1.336 GB, free: 7.359 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.4394, allocations: 7.984 kB / 1.336 GB, free: 7.352 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.4395, allocations: 27.95 kB / 1.336 GB, free: 7.324 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.4395, allocations: 11.94 kB / 1.336 GB, free: 7.312 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.753e-05/0.4396, allocations: 100.8 kB / 1.336 GB, free: 7.215 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4396, allocations: 0 / 1.336 GB, free: 7.215 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005293/0.4402, allocations: 79.7 kB / 1.336 GB, free: 7.137 MB / 1.029 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.001044/0.4412, allocations: 0.8488 MB / 1.337 GB, free: 6.258 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007971/0.442, allocations: 276 kB / 1.337 GB, free: 5.977 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.442, allocations: 4.125 kB / 1.337 GB, free: 5.973 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002101/0.4422, allocations: 83.91 kB / 1.337 GB, free: 5.891 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004763/0.4427, allocations: 27.09 kB / 1.337 GB, free: 5.867 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004446/0.4471, allocations: 2.372 MB / 1.34 GB, free: 3.367 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006524/0.4478, allocations: 0.7363 MB / 1.34 GB, free: 2.605 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001239/0.4479, allocations: 29.94 kB / 1.34 GB, free: 2.578 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.4481, allocations: 63.42 kB / 1.34 GB, free: 2.516 MB / 1.029 GB Notification: Performance of SimCode: time 9.62e-07/0.4481, allocations: 0 / 1.34 GB, free: 2.516 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04388/0.4919, allocations: 4.964 MB / 1.345 GB, free: 13.69 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.92, allocations: 10.17 kB / 1.345 GB, free: 13.68 MB / 1.045 GB " [Timeout remaining time 288] (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/jenkins1/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: 18.970019477186725]