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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 108.2 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.773/2.773, allocations: 476.7 MB / 0.7611 GB, free: 11.3 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002049/0.002049, allocations: 71.31 kB / 1.104 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3361, allocations: 168.7 MB / 1.269 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003372/0.3395, allocations: 1.791 MB / 1.27 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001545/0.341, allocations: 0.8388 MB / 1.271 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.3411, allocations: 4 kB / 1.271 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.3413, allocations: 19.8 kB / 1.271 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002919/0.3416, allocations: 39.7 kB / 1.271 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000584/0.3422, allocations: 159 kB / 1.271 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003465/0.3425, allocations: 207.6 kB / 1.272 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.3426, allocations: 37.36 kB / 1.272 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.3428, allocations: 87.69 kB / 1.272 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.343, allocations: 79.72 kB / 1.272 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.21e-05/0.343, allocations: 20 kB / 1.272 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.032e-05/0.3431, allocations: 27.98 kB / 1.272 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.912e-05/0.3432, allocations: 35.86 kB / 1.272 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.3433, allocations: 75.62 kB / 1.272 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.3436, allocations: 206.8 kB / 1.272 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3436, allocations: 0 / 1.272 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.296e-06/0.3436, allocations: 7.984 kB / 1.272 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.3436, allocations: 0 / 1.272 GB, free: 9.227 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.001007/0.3446, allocations: 476.4 kB / 1.273 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.3447, allocations: 12.03 kB / 1.273 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.218e-05/0.3447, allocations: 42.73 kB / 1.273 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.93e-05/0.3448, allocations: 20.84 kB / 1.273 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004355/0.3452, allocations: 233.8 kB / 1.273 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.3453, allocations: 8.375 kB / 1.273 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.3453, allocations: 16.36 kB / 1.273 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.3455, allocations: 93.72 kB / 1.273 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3455, allocations: 0 / 1.273 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.3455, allocations: 0 / 1.273 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.105e-05/0.3455, allocations: 4 kB / 1.273 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.3457, allocations: 63.89 kB / 1.273 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006818/0.3464, allocations: 440.5 kB / 1.274 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.3465, allocations: 82.52 kB / 1.274 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.482e-05/0.3466, allocations: 28.89 kB / 1.274 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.3466, allocations: 0 / 1.274 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001493/0.3467, allocations: 87.31 kB / 1.274 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.253e-06/0.3467, allocations: 0 / 1.274 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003/0.347, allocations: 137.5 kB / 1.274 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.3471, allocations: 63.33 kB / 1.274 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.3473, allocations: 175.4 kB / 1.274 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.3474, allocations: 29.7 kB / 1.274 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.383e-05/0.3474, allocations: 116.2 kB / 1.274 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/0.3475, allocations: 32.11 kB / 1.274 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.247e-05/0.3476, allocations: 37.7 kB / 1.274 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3477, allocations: 326.8 kB / 1.275 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.3478, allocations: 55.97 kB / 1.275 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.348, allocations: 78.48 kB / 1.275 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001935/0.3482, allocations: 132.1 kB / 1.275 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3482, allocations: 4 kB / 1.275 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003727/0.3485, allocations: 207.2 kB / 1.275 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.031e-05/0.3486, allocations: 41.69 kB / 1.275 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.3486, allocations: 0 / 1.275 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.3486, allocations: 0 / 1.275 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.3488, allocations: 23.98 kB / 1.275 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.3488, allocations: 7.875 kB / 1.275 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.349, allocations: 31.97 kB / 1.275 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.349, allocations: 11.98 kB / 1.275 GB, free: 5.895 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.0001338/0.3492, allocations: 127.4 kB / 1.275 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-05/0.3492, allocations: 15.89 kB / 1.275 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.984e-05/0.3493, allocations: 21.39 kB / 1.275 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3493, allocations: 0 / 1.275 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.3493, allocations: 7.938 kB / 1.275 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3493, allocations: 0 / 1.275 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.3495, allocations: 225.6 kB / 1.276 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3495, allocations: 0 / 1.276 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.217e-05/0.3496, allocations: 11.98 kB / 1.276 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3496, allocations: 4 kB / 1.276 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.3496, allocations: 4 kB / 1.276 GB, free: 5.418 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.3496, allocations: 4 kB / 1.276 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3496, allocations: 11.81 kB / 1.276 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000272/0.3499, allocations: 164.9 kB / 1.276 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.42e-05/0.35, allocations: 105 kB / 1.276 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.35, allocations: 0 / 1.276 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-05/0.3501, allocations: 7.984 kB / 1.276 GB, free: 5.094 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.3501, allocations: 16 kB / 1.276 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.3501, allocations: 0 / 1.276 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001562/0.3503, allocations: 132.9 kB / 1.276 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3503, allocations: 0 / 1.276 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002448/0.3505, allocations: 32.14 kB / 1.276 GB, free: 4.918 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.00062/0.3511, allocations: 0.7144 MB / 1.277 GB, free: 4.176 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003009/0.3514, allocations: 155.3 kB / 1.277 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3514, allocations: 0 / 1.277 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.533e-05/0.3515, allocations: 35.92 kB / 1.277 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.3518, allocations: 38 kB / 1.277 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.3543, allocations: 1.908 MB / 1.279 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.3546, allocations: 0.708 MB / 1.28 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.4e-05/0.3547, allocations: 20.88 kB / 1.28 GB, free: 1.188 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.093e-05/0.3548, allocations: 35.42 kB / 1.28 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of SimCode: time 6.52e-07/0.3548, allocations: 4 kB / 1.28 GB, free: 1.148 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02836/0.3831, allocations: 3.658 MB / 1.283 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.749/9.132, allocations: 19.38 kB / 1.283 GB, free: 13.61 MB / 0.9981 GB " [Timeout remaining time 291] (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_2/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: 15.936391757801175]