Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001039/0.001039, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001079/0.001079, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8938/0.8938, 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 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.723/1.723, allocations: 359 MB / 0.6037 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 0.9505 GB, free: 3.508 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.147e-05/2.327e-05, allocations: 6.281 kB / 0.9505 GB, free: 3.5 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003074/0.003098, allocations: 1.77 MB / 0.9522 GB, free: 1.711 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.004456, allocations: 0.8217 MB / 0.953 GB, free: 0.8828 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.004566, allocations: 0 / 0.953 GB, free: 0.8828 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.004706, allocations: 23.73 kB / 0.953 GB, free: 0.8594 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0003068/0.005013, allocations: 39.78 kB / 0.9531 GB, free: 0.8203 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005951/0.005608, allocations: 157.8 kB / 0.9532 GB, free: 0.668 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.00591, allocations: 207.5 kB / 0.9534 GB, free: 476 kB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.00605, allocations: 29.61 kB / 0.9534 GB, free: 440 kB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.006318, allocations: 123.7 kB / 0.9536 GB, free: 316 kB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001797/0.006497, allocations: 67.78 kB / 0.9536 GB, free: 248 kB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.006536, allocations: 20 kB / 0.9536 GB, free: 228 kB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 8.428e-05/0.00662, allocations: 31.98 kB / 0.9537 GB, free: 196 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 8.071e-05/0.006701, allocations: 35.84 kB / 0.9537 GB, free: 160 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 9.432e-05/0.006795, allocations: 51.84 kB / 0.9538 GB, free: 108 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0003282/0.007123, allocations: 223.4 kB / 0.954 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.007128, allocations: 0 / 0.954 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.624e-06/0.007129, allocations: 0 / 0.954 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.007134, allocations: 0 / 0.954 GB, free: 15.89 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008071/0.007941, allocations: 399.3 kB / 0.9544 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.007987, allocations: 16.03 kB / 0.9544 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.963e-05/0.008026, allocations: 42.67 kB / 0.9544 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.623e-05/0.008083, allocations: 20.84 kB / 0.9544 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/0.008412, allocations: 178.2 kB / 0.9546 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.008433, allocations: 8.375 kB / 0.9546 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.008471, allocations: 8.375 kB / 0.9546 GB, free: 15.16 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.008647, allocations: 97.7 kB / 0.9547 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.008657, allocations: 192 / 0.9547 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.008671, allocations: 4.125 kB / 0.9547 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.008697, allocations: 8 kB / 0.9547 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.008834, allocations: 55.97 kB / 0.9548 GB, free: 15 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006403/0.009475, allocations: 379.6 kB / 0.9551 GB, free: 14.58 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.009642, allocations: 82.56 kB / 0.9552 GB, free: 14.49 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.136e-05/0.009694, allocations: 28.89 kB / 0.9552 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.009709, allocations: 0 / 0.9552 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001525/0.009862, allocations: 91.45 kB / 0.9553 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.009863, allocations: 0 / 0.9553 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of matching and sorting (n=9): time 0.0003053/0.01017, allocations: 141.5 kB / 0.9555 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.01021, allocations: 51.41 kB / 0.9555 GB, free: 14.15 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.0104, allocations: 179.2 kB / 0.9557 GB, free: 13.96 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.01042, allocations: 30.08 kB / 0.9557 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 7.516e-05/0.0105, allocations: 108.1 kB / 0.9558 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.446e-05/0.01053, allocations: 31.88 kB / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.346e-05/0.01061, allocations: 37.7 kB / 0.9559 GB, free: 13.75 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.01071, allocations: 334.7 kB / 0.9562 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.01084, allocations: 81.67 kB / 0.9563 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.01097, allocations: 104.2 kB / 0.9564 GB, free: 13.21 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.01115, allocations: 136.2 kB / 0.9565 GB, free: 13.06 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01115, allocations: 3.938 kB / 0.9565 GB, free: 13.05 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004197/0.01157, allocations: 241 kB / 0.9567 GB, free: 12.8 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.01161, allocations: 40.34 kB / 0.9568 GB, free: 12.76 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.01162, allocations: 0 / 0.9568 GB, free: 12.76 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.01163, allocations: 0 / 0.9568 GB, free: 12.76 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.01177, allocations: 27.92 kB / 0.9568 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.01178, allocations: 0 / 0.9568 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.01194, allocations: 39.98 kB / 0.9568 GB, free: 12.69 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.01196, allocations: 11.92 kB / 0.9569 GB, free: 12.68 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001454/0.01211, allocations: 125.8 kB / 0.957 GB, free: 12.55 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.811e-05/0.01213, allocations: 11.91 kB / 0.957 GB, free: 12.54 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.01216, allocations: 21.45 kB / 0.957 GB, free: 12.51 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.01217, allocations: 0 / 0.957 GB, free: 12.51 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.01217, allocations: 8 kB / 0.957 GB, free: 12.5 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.01218, allocations: 0 / 0.957 GB, free: 12.5 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.0123, allocations: 192.6 kB / 0.9572 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.01231, allocations: 0 / 0.9572 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-05/0.01237, allocations: 15.94 kB / 0.9572 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.01237, allocations: 0 / 0.9572 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.01238, allocations: 0 / 0.9572 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.01239, allocations: 4 kB / 0.9572 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.01239, allocations: 0 / 0.9572 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002111/0.0126, allocations: 176.8 kB / 0.9574 GB, free: 12.06 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 3.92e-05/0.01264, allocations: 15.94 kB / 0.9574 GB, free: 12.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.01266, allocations: 11.98 kB / 0.9574 GB, free: 12.03 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.472e-05/0.0127, allocations: 0 / 0.9574 GB, free: 12.03 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.01274, allocations: 12.05 kB / 0.9574 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.583e-06/0.01274, allocations: 4 kB / 0.9574 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 8.204e-05/0.01282, allocations: 125.1 kB / 0.9575 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of sort global known variables: time 8e-08/0.01282, allocations: 0 / 0.9575 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001667/0.01299, allocations: 43.83 kB / 0.9576 GB, free: 11.85 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003885/0.01338, allocations: 0.7061 MB / 0.9583 GB, free: 11.12 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.000207/0.01359, allocations: 185 kB / 0.9585 GB, free: 10.92 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01359, allocations: 0 / 0.9585 GB, free: 10.92 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 4.898e-05/0.01364, allocations: 36.11 kB / 0.9585 GB, free: 10.88 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.01385, allocations: 35.92 kB / 0.9585 GB, free: 10.85 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.01542, allocations: 2.029 MB / 0.9605 GB, free: 8.699 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.667e-05/0.01549, allocations: 98.27 kB / 0.9606 GB, free: 8.582 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 5.241e-05/0.01554, allocations: 20.97 kB / 0.9606 GB, free: 8.562 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.509e-05/0.0156, allocations: 40.47 kB / 0.9607 GB, free: 8.523 MB / 0.9167 GB Notification: Performance of SimCode: time 6.01e-07/0.0156, allocations: 0 / 0.9607 GB, free: 8.523 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02353/0.03913, allocations: 4.468 MB / 0.965 GB, free: 4.234 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.051/7.09, allocations: 7.984 kB / 0.965 GB, free: 4.227 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 11.177582662552595]