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.001323/0.001323, allocations: 106.4 kB / 18.94 MB, free: 2.957 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.001532/0.001532, allocations: 222.9 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.553/1.553, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.834/2.834, allocations: 476.7 MB / 0.7707 GB, free: 4.281 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: 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.002078/0.002078, allocations: 65.86 kB / 1.117 GB, free: 40.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3522, allocations: 170 MB / 1.283 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003551/0.3557, allocations: 1.814 MB / 1.285 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001666/0.3574, allocations: 0.8805 MB / 1.286 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.3575, allocations: 3.938 kB / 1.286 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.3577, allocations: 15.86 kB / 1.286 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.3579, allocations: 47.64 kB / 1.286 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005627/0.3585, allocations: 164.4 kB / 1.286 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.3589, allocations: 207.6 kB / 1.286 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.359, allocations: 37.12 kB / 1.286 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002422/0.3593, allocations: 87.7 kB / 1.287 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002159/0.3595, allocations: 83.72 kB / 1.287 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.052e-05/0.3595, allocations: 16 kB / 1.287 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.246e-05/0.3596, allocations: 31.92 kB / 1.287 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.354e-05/0.3597, allocations: 39.89 kB / 1.287 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.3598, allocations: 75.66 kB / 1.287 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003084/0.3601, allocations: 199.3 kB / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3601, allocations: 0 / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3601, allocations: 0 / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.3601, allocations: 0 / 1.287 GB, free: 8.086 MB / 0.9825 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.0009366/0.3611, allocations: 411.3 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3611, allocations: 12.03 kB / 1.287 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.3611, allocations: 38.73 kB / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.341e-05/0.3612, allocations: 16.84 kB / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.3616, allocations: 182.9 kB / 1.288 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.3616, allocations: 8.359 kB / 1.288 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.3616, allocations: 16.31 kB / 1.288 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.3618, allocations: 89.73 kB / 1.288 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.3618, allocations: 4 kB / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3618, allocations: 3.984 kB / 1.288 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.3619, allocations: 4 kB / 1.288 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001525/0.362, allocations: 55.97 kB / 1.288 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006914/0.3627, allocations: 411.5 kB / 1.288 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/0.3629, allocations: 82.61 kB / 1.288 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.561e-05/0.3629, allocations: 28.86 kB / 1.288 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.3629, allocations: 3.984 kB / 1.288 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.3631, allocations: 91.25 kB / 1.288 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.3631, allocations: 0 / 1.288 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003024/0.3634, allocations: 129.5 kB / 1.288 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.3634, allocations: 63.34 kB / 1.289 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.3637, allocations: 180 kB / 1.289 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.3637, allocations: 29.7 kB / 1.289 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.046e-05/0.3638, allocations: 112 kB / 1.289 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.604e-05/0.3638, allocations: 27.92 kB / 1.289 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.717e-05/0.3639, allocations: 41.7 kB / 1.289 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3641, allocations: 322.8 kB / 1.289 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.3642, allocations: 51.97 kB / 1.289 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.3643, allocations: 82.48 kB / 1.289 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.3645, allocations: 124.2 kB / 1.289 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3645, allocations: 0 / 1.289 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003631/0.3649, allocations: 215.1 kB / 1.29 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/0.3649, allocations: 37.7 kB / 1.29 GB, free: 5.031 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.3649, allocations: 64 / 1.29 GB, free: 5.031 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.3649, allocations: 4 kB / 1.29 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.3651, allocations: 31.91 kB / 1.29 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3651, allocations: 3.938 kB / 1.29 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.3653, allocations: 35.92 kB / 1.29 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.3653, allocations: 8 kB / 1.29 GB, free: 4.949 MB / 0.9825 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.0001181/0.3654, allocations: 129.8 kB / 1.29 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.068e-05/0.3655, allocations: 11.95 kB / 1.29 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.533e-05/0.3655, allocations: 17.41 kB / 1.29 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3655, allocations: 0 / 1.29 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3655, allocations: 3.938 kB / 1.29 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3655, allocations: 8.453 kB / 1.29 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.3657, allocations: 200.7 kB / 1.29 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3657, allocations: 3.938 kB / 1.29 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.959e-05/0.3658, allocations: 12 kB / 1.29 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.3658, allocations: 3.984 kB / 1.29 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.3658, allocations: 3.938 kB / 1.29 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.3659, allocations: 8 kB / 1.29 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3659, allocations: 3.938 kB / 1.29 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.3661, allocations: 161 kB / 1.29 GB, free: 4.32 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.924e-05/0.3662, allocations: 27.91 kB / 1.29 GB, free: 4.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.3662, allocations: 4 kB / 1.29 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.936e-05/0.3663, allocations: 4 kB / 1.29 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.54e-05/0.3663, allocations: 11.86 kB / 1.29 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.3663, allocations: 8 kB / 1.29 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001459/0.3665, allocations: 132 kB / 1.29 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3665, allocations: 0 / 1.29 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002375/0.3667, allocations: 32 kB / 1.291 GB, free: 4.105 MB / 0.9825 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.0005932/0.3673, allocations: 0.6983 MB / 1.291 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002929/0.3676, allocations: 171.3 kB / 1.291 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3676, allocations: 0 / 1.291 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.744e-05/0.3677, allocations: 32.36 kB / 1.291 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.368, allocations: 36.11 kB / 1.291 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.3705, allocations: 1.921 MB / 1.293 GB, free: 1.117 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.3709, allocations: 0.7119 MB / 1.294 GB, free: 388 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.31e-05/0.371, allocations: 16.91 kB / 1.294 GB, free: 372 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.558e-05/0.371, allocations: 43.42 kB / 1.294 GB, free: 328 kB / 0.9825 GB Notification: Performance of SimCode: time 3.5e-07/0.371, allocations: 0 / 1.294 GB, free: 328 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0312/0.4022, allocations: 3.796 MB / 1.298 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12, allocations: 4.734 kB / 1.298 GB, free: 12.68 MB / 0.9981 GB " [Timeout remaining time 287] (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/jenkins1/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: 18.86415104311891]