Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.001292/0.001292, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.001442/0.001442, allocations: 218 kB / 23.01 MB, free: 4.605 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.488/1.488, allocations: 230.6 MB / 256.8 MB, free: 8.027 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.884/2.884, allocations: 476.7 MB / 0.7714 GB, free: 4.305 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: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset") [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.002092/0.002092, allocations: 68.12 kB / 1.119 GB, free: 40.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3389, allocations: 170 MB / 1.285 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00354/0.3424, allocations: 1.855 MB / 1.286 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.3437, allocations: 0.5844 MB / 1.287 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.3438, allocations: 11.88 kB / 1.287 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.3439, allocations: 23.73 kB / 1.287 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.303e-05/0.344, allocations: 23.73 kB / 1.287 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.3443, allocations: 67.86 kB / 1.287 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002816/0.3446, allocations: 183.4 kB / 1.287 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.3447, allocations: 45.66 kB / 1.287 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.3448, allocations: 55.72 kB / 1.287 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.235e-05/0.3449, allocations: 59.7 kB / 1.287 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.3449, allocations: 8 kB / 1.287 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.102e-05/0.345, allocations: 12 kB / 1.287 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.021e-05/0.345, allocations: 31.84 kB / 1.287 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.503e-05/0.3451, allocations: 63.61 kB / 1.288 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.3453, allocations: 127.3 kB / 1.288 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3453, allocations: 3.938 kB / 1.288 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.714e-06/0.3453, allocations: 0 / 1.288 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.3453, allocations: 4 kB / 1.288 GB, free: 8.074 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007651/0.3461, allocations: 435.1 kB / 1.288 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3461, allocations: 12.03 kB / 1.288 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.853e-05/0.3462, allocations: 20.83 kB / 1.288 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000319/0.3465, allocations: 174.8 kB / 1.288 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.3465, allocations: 8.375 kB / 1.288 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.3465, allocations: 12.38 kB / 1.288 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003084/0.3469, allocations: 150.2 kB / 1.288 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.3469, allocations: 0 / 1.288 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.3469, allocations: 4 kB / 1.288 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3469, allocations: 8 kB / 1.288 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002201/0.3471, allocations: 71.88 kB / 1.289 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.3481, allocations: 0.7073 MB / 1.289 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.3483, allocations: 50.55 kB / 1.289 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.3484, allocations: 24.84 kB / 1.289 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.3484, allocations: 4 kB / 1.289 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/0.3487, allocations: 134.6 kB / 1.289 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.3487, allocations: 0 / 1.289 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0004879/0.3492, allocations: 157.7 kB / 1.29 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.3493, allocations: 148.4 kB / 1.29 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.3495, allocations: 199 kB / 1.29 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.3495, allocations: 25.7 kB / 1.29 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.733e-05/0.3496, allocations: 128 kB / 1.29 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.673e-05/0.3496, allocations: 39.84 kB / 1.29 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.35e-05/0.3497, allocations: 37.7 kB / 1.29 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3499, allocations: 334.8 kB / 1.29 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.35, allocations: 43.97 kB / 1.29 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.3502, allocations: 142.5 kB / 1.291 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.3505, allocations: 210.5 kB / 1.291 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3505, allocations: 0 / 1.291 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004021/0.3509, allocations: 209.2 kB / 1.291 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.3509, allocations: 4 kB / 1.291 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.351, allocations: 4 kB / 1.291 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.351, allocations: 8 kB / 1.291 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.3511, allocations: 39.91 kB / 1.291 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.3511, allocations: 4.438 kB / 1.291 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.3513, allocations: 31.88 kB / 1.291 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.3513, allocations: 8 kB / 1.291 GB, free: 4.184 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.0001256/0.3514, allocations: 136.5 kB / 1.291 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.3514, allocations: 19.91 kB / 1.291 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.073e-05/0.3515, allocations: 21.39 kB / 1.291 GB, free: 4 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.3515, allocations: 0 / 1.291 GB, free: 4 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3515, allocations: 4 kB / 1.291 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3515, allocations: 0 / 1.291 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007775/0.3523, allocations: 0.4927 MB / 1.292 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.3523, allocations: 4 kB / 1.292 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.3524, allocations: 16.3 kB / 1.292 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3524, allocations: 0 / 1.292 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.3524, allocations: 4 kB / 1.292 GB, free: 3.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.3524, allocations: 4 kB / 1.292 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3524, allocations: 7.938 kB / 1.292 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005163/0.3529, allocations: 360.2 kB / 1.292 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.353, allocations: 27.88 kB / 1.292 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.353, allocations: 4 kB / 1.292 GB, free: 3.012 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.3532, allocations: 11.98 kB / 1.292 GB, free: 3 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/0.3532, allocations: 15.92 kB / 1.292 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.3532, allocations: 7.984 kB / 1.292 GB, free: 2.977 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001304/0.3534, allocations: 139.2 kB / 1.292 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3534, allocations: 0 / 1.292 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003279/0.3537, allocations: 28 kB / 1.292 GB, free: 2.812 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0001573/0.3538, allocations: 107.2 kB / 1.292 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003338/0.3542, allocations: 119.7 kB / 1.293 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3542, allocations: 1 kB / 1.293 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.3543, allocations: 51.97 kB / 1.293 GB, free: 2.531 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005579/0.3549, allocations: 68.34 kB / 1.293 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006961/0.3556, allocations: 374.3 kB / 1.293 GB, free: 2.051 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.356, allocations: 0.7281 MB / 1.294 GB, free: 1.297 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.354e-05/0.356, allocations: 23.44 kB / 1.294 GB, free: 1.273 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.356, allocations: 3.938 kB / 1.294 GB, free: 1.27 MB / 0.9825 GB Notification: Performance of Templates: time 0.004407/0.3604, allocations: 2.149 MB / 1.296 GB, free: 15.13 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.796457207994536]