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.001294/0.001294, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001477/0.001477, allocations: 216 kB / 23 MB, free: 4.566 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.445/1.445, allocations: 230.6 MB / 256.8 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.748/2.748, allocations: 476.7 MB / 0.7714 GB, free: 4.266 MB / 0.6231 GB " [Timeout remaining time 177] 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: translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [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.001987/0.001987, allocations: 67.48 kB / 1.119 GB, free: 40.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3165, allocations: 170 MB / 1.285 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003189/0.3197, allocations: 1.811 MB / 1.286 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001572/0.3213, allocations: 0.8921 MB / 1.287 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.3214, allocations: 0 / 1.287 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.3215, allocations: 19.8 kB / 1.287 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.3218, allocations: 35.72 kB / 1.287 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.3223, allocations: 169.8 kB / 1.287 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003272/0.3226, allocations: 219.5 kB / 1.288 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.3227, allocations: 29.56 kB / 1.288 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002027/0.3229, allocations: 87.69 kB / 1.288 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.3231, allocations: 75.73 kB / 1.288 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.645e-05/0.3232, allocations: 16 kB / 1.288 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.131e-05/0.3232, allocations: 35.97 kB / 1.288 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.216e-05/0.3233, allocations: 39.84 kB / 1.288 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.3234, allocations: 75.66 kB / 1.288 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003227/0.3238, allocations: 203.3 kB / 1.288 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3238, allocations: 0 / 1.288 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3238, allocations: 0 / 1.288 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.3238, allocations: 0 / 1.288 GB, free: 7.559 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.000875/0.3246, allocations: 399.4 kB / 1.289 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3247, allocations: 12.03 kB / 1.289 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.423e-05/0.3247, allocations: 20.84 kB / 1.289 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003457/0.3251, allocations: 186.8 kB / 1.289 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.3251, allocations: 8.375 kB / 1.289 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.682e-05/0.3252, allocations: 16.38 kB / 1.289 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.3253, allocations: 81.97 kB / 1.289 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.3253, allocations: 0 / 1.289 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3254, allocations: 4 kB / 1.289 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.3254, allocations: 7.938 kB / 1.289 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.3255, allocations: 59.97 kB / 1.289 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006773/0.3262, allocations: 407.6 kB / 1.289 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.3264, allocations: 86.52 kB / 1.289 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.854e-05/0.3264, allocations: 36.81 kB / 1.289 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.3264, allocations: 7.938 kB / 1.289 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000157/0.3266, allocations: 83.31 kB / 1.29 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.3266, allocations: 0 / 1.29 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003252/0.3269, allocations: 141.5 kB / 1.29 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.327, allocations: 51.41 kB / 1.29 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.3272, allocations: 179.9 kB / 1.29 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.3272, allocations: 29.69 kB / 1.29 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.3273, allocations: 120 kB / 1.29 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.295e-05/0.3274, allocations: 23.94 kB / 1.29 GB, free: 5.465 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.003e-05/0.3274, allocations: 37.7 kB / 1.29 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.3276, allocations: 330.8 kB / 1.29 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.3277, allocations: 47.98 kB / 1.29 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.3278, allocations: 76.91 kB / 1.291 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002007/0.328, allocations: 132.4 kB / 1.291 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.328, allocations: 0 / 1.291 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003642/0.3284, allocations: 215.1 kB / 1.291 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.418e-05/0.3284, allocations: 37.69 kB / 1.291 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3285, allocations: 0 / 1.291 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.3285, allocations: 4 kB / 1.291 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.3286, allocations: 23.92 kB / 1.291 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3286, allocations: 7.938 kB / 1.291 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.3289, allocations: 39.97 kB / 1.291 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/0.3289, allocations: 8 kB / 1.291 GB, free: 4.469 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.0001228/0.329, allocations: 125.8 kB / 1.291 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.329, allocations: 11.95 kB / 1.291 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.299e-05/0.3291, allocations: 17.39 kB / 1.291 GB, free: 4.305 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.3291, allocations: 480 / 1.291 GB, free: 4.305 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3291, allocations: 3.938 kB / 1.291 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.3291, allocations: 4 kB / 1.291 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.3293, allocations: 204.5 kB / 1.291 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3293, allocations: 0 / 1.291 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.067e-05/0.3294, allocations: 15.94 kB / 1.291 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3294, allocations: 0 / 1.291 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.3294, allocations: 7.938 kB / 1.291 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3294, allocations: 0 / 1.291 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.3294, allocations: 3.938 kB / 1.291 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002943/0.3297, allocations: 173 kB / 1.292 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.775e-05/0.3298, allocations: 19.92 kB / 1.292 GB, free: 3.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.3298, allocations: 4 kB / 1.292 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-05/0.3299, allocations: 7.984 kB / 1.292 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.312e-05/0.33, allocations: 11.92 kB / 1.292 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.587e-06/0.33, allocations: 4 kB / 1.292 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001428/0.3301, allocations: 124 kB / 1.292 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3301, allocations: 0 / 1.292 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002384/0.3303, allocations: 32 kB / 1.292 GB, free: 3.641 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.0001474/0.3305, allocations: 107.3 kB / 1.292 GB, free: 3.527 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000299/0.3308, allocations: 159.2 kB / 1.292 GB, free: 3.359 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3308, allocations: 0 / 1.292 GB, free: 3.359 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.707e-05/0.3309, allocations: 39.92 kB / 1.292 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.3312, allocations: 28.67 kB / 1.292 GB, free: 3.297 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006128/0.3318, allocations: 338.9 kB / 1.292 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.3321, allocations: 0.7118 MB / 1.293 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.007e-05/0.3322, allocations: 15.42 kB / 1.293 GB, free: 2.18 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.3322, allocations: 0 / 1.293 GB, free: 2.18 MB / 0.9825 GB Notification: Performance of Templates: time 0.004183/0.3363, allocations: 1.935 MB / 1.295 GB, free: 256 kB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 400] 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: 11.206498251995072]