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.0008023/0.0008023, 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.001113/0.001113, 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.871/0.871, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.713/1.713, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 8.786e-06/1.047e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.001862/0.001873, allocations: 1.755 MB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0009953/0.002868, allocations: 0.6853 MB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.002973, allocations: 7.938 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.003086, allocations: 31.67 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.849e-05/0.003135, allocations: 31.72 kB / 1.002 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004992/0.003634, allocations: 270.1 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003056/0.00394, allocations: 407.3 kB / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002072/0.004147, allocations: 175.3 kB / 1.003 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.004293, allocations: 207.6 kB / 1.003 GB, free: 9.957 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.004423, allocations: 103.7 kB / 1.003 GB, free: 9.855 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.382e-05/0.004457, allocations: 40 kB / 1.003 GB, free: 9.816 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 8.012e-05/0.004537, allocations: 55.98 kB / 1.003 GB, free: 9.762 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.31e-05/0.00459, allocations: 71.75 kB / 1.003 GB, free: 9.691 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 8.393e-05/0.004674, allocations: 107.8 kB / 1.003 GB, free: 9.586 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003156/0.00499, allocations: 450.7 kB / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.004992, allocations: 0 / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.81e-07/0.004993, allocations: 0 / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.004997, allocations: 0 / 1.004 GB, free: 9.145 MB / 0.9636 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.0005481/0.005545, allocations: 482.7 kB / 1.004 GB, free: 8.629 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.005583, allocations: 12.75 kB / 1.004 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.915e-05/0.005632, allocations: 62.72 kB / 1.004 GB, free: 8.547 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.005797, allocations: 40.78 kB / 1.004 GB, free: 8.508 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.006032, allocations: 201.4 kB / 1.005 GB, free: 8.285 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.006063, allocations: 28.88 kB / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.006094, allocations: 28.38 kB / 1.005 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.006389, allocations: 271.3 kB / 1.005 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.006399, allocations: 4.125 kB / 1.005 GB, free: 7.949 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.006416, allocations: 12.38 kB / 1.005 GB, free: 7.938 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.006423, allocations: 12.12 kB / 1.005 GB, free: 7.926 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002146/0.006638, allocations: 181.9 kB / 1.005 GB, free: 7.75 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000848/0.007486, allocations: 0.7372 MB / 1.006 GB, free: 6.965 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.007694, allocations: 162.6 kB / 1.006 GB, free: 6.797 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.443e-05/0.007779, allocations: 84.91 kB / 1.006 GB, free: 6.711 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.007796, allocations: 0 / 1.006 GB, free: 6.711 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/0.007963, allocations: 145.1 kB / 1.006 GB, free: 6.555 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=27): time 1.332e-06/0.007964, allocations: 0 / 1.006 GB, free: 6.555 MB / 0.9636 GB Notification: Performance of matching and sorting (n=27): time 0.0003474/0.008312, allocations: 271.6 kB / 1.007 GB, free: 6.285 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.008347, allocations: 71.28 kB / 1.007 GB, free: 6.203 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.176e-05/0.008439, allocations: 159.7 kB / 1.007 GB, free: 6.039 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.008467, allocations: 41.7 kB / 1.007 GB, free: 5.992 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 7.576e-05/0.008543, allocations: 144.8 kB / 1.007 GB, free: 5.848 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.735e-05/0.00858, allocations: 71.45 kB / 1.007 GB, free: 5.777 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.417e-05/0.008664, allocations: 89.67 kB / 1.007 GB, free: 5.684 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.759e-05/0.008742, allocations: 326.8 kB / 1.007 GB, free: 5.355 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.008876, allocations: 125.7 kB / 1.008 GB, free: 5.227 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.009028, allocations: 200.5 kB / 1.008 GB, free: 4.996 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.009243, allocations: 251.5 kB / 1.008 GB, free: 4.723 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.009245, allocations: 0 / 1.008 GB, free: 4.723 MB / 0.9636 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003683/0.009613, allocations: 389.9 kB / 1.008 GB, free: 4.324 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.009641, allocations: 37.92 kB / 1.008 GB, free: 4.281 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.009646, allocations: 3.984 kB / 1.008 GB, free: 4.277 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.009659, allocations: 7.938 kB / 1.008 GB, free: 4.27 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.618e-05/0.009746, allocations: 31.92 kB / 1.008 GB, free: 4.238 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.009752, allocations: 4 kB / 1.008 GB, free: 4.234 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.009869, allocations: 43.81 kB / 1.008 GB, free: 4.191 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.009887, allocations: 16 kB / 1.008 GB, free: 4.176 MB / 0.9636 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.0001076/0.009995, allocations: 173.8 kB / 1.009 GB, free: 3.996 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.447e-05/0.01001, allocations: 11.91 kB / 1.009 GB, free: 3.984 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.279e-05/0.01004, allocations: 25.95 kB / 1.009 GB, free: 3.953 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.01005, allocations: 7.938 kB / 1.009 GB, free: 3.945 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.01005, allocations: 0 / 1.009 GB, free: 3.945 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.01005, allocations: 0 / 1.009 GB, free: 3.945 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004835/0.01054, allocations: 0.5727 MB / 1.009 GB, free: 3.32 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.01054, allocations: 0 / 1.009 GB, free: 3.32 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.917e-05/0.01058, allocations: 19.92 kB / 1.009 GB, free: 3.301 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.01058, allocations: 7.984 kB / 1.009 GB, free: 3.293 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.01059, allocations: 8 kB / 1.009 GB, free: 3.285 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.01059, allocations: 0 / 1.009 GB, free: 3.285 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.01059, allocations: 0 / 1.009 GB, free: 3.285 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.0108, allocations: 316.2 kB / 1.01 GB, free: 2.961 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.133e-05/0.01081, allocations: 15.84 kB / 1.01 GB, free: 2.945 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.01083, allocations: 15.98 kB / 1.01 GB, free: 2.93 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.365e-05/0.01087, allocations: 4 kB / 1.01 GB, free: 2.926 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.582e-05/0.01093, allocations: 35.83 kB / 1.01 GB, free: 2.891 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.427e-06/0.01094, allocations: 8 kB / 1.01 GB, free: 2.883 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.184e-05/0.01098, allocations: 108.6 kB / 1.01 GB, free: 2.777 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.01098, allocations: 0 / 1.01 GB, free: 2.777 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001988/0.01118, allocations: 71.83 kB / 1.01 GB, free: 2.707 MB / 0.9636 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.0004249/0.01161, allocations: 0.8528 MB / 1.011 GB, free: 1.828 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003002/0.01191, allocations: 305.4 kB / 1.011 GB, free: 1.512 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01191, allocations: 0 / 1.011 GB, free: 1.512 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.461e-05/0.01199, allocations: 84.83 kB / 1.011 GB, free: 1.43 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.0122, allocations: 35.95 kB / 1.011 GB, free: 1.395 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/0.01409, allocations: 2.491 MB / 1.013 GB, free: 14.75 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.844e-05/0.01417, allocations: 137.5 kB / 1.014 GB, free: 14.6 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 5.273e-05/0.01422, allocations: 21.94 kB / 1.014 GB, free: 14.58 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.355e-05/0.0143, allocations: 68.48 kB / 1.014 GB, free: 14.51 MB / 0.9792 GB Notification: Performance of SimCode: time 4.8e-07/0.0143, allocations: 0 / 1.014 GB, free: 14.51 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01694/0.03124, allocations: 5.553 MB / 1.019 GB, free: 9.133 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.599/6.63, allocations: 23.92 kB / 1.019 GB, free: 9.109 MB / 0.9792 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 840.0] 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: 10.589749568141997]