Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.001482/0.001482, allocations: 110 kB / 18.93 MB, free: 2.945 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.001803/0.001803, allocations: 189.6 kB / 22.23 MB, free: 5.16 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 / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.581/2.581, allocations: 443.4 MB / 0.7321 GB, free: 12.28 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.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: 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_10_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_10_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002852/0.002852, allocations: 59.89 kB / 1.061 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8422/0.845, allocations: 160.8 MB / 1.218 GB, free: 3.742 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00334/0.8484, allocations: 1.847 MB / 1.22 GB, free: 2.297 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.8495, allocations: 0.5426 MB / 1.221 GB, free: 1.863 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.8496, allocations: 7.281 kB / 1.221 GB, free: 1.859 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.8497, allocations: 24.84 kB / 1.221 GB, free: 1.836 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.099e-05/0.8498, allocations: 34.92 kB / 1.221 GB, free: 1.805 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002408/0.85, allocations: 65.45 kB / 1.221 GB, free: 1.754 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002551/0.8503, allocations: 182 kB / 1.221 GB, free: 1.641 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.8504, allocations: 38.31 kB / 1.221 GB, free: 1.617 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.175e-05/0.8505, allocations: 52.3 kB / 1.221 GB, free: 1.586 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.569e-05/0.8506, allocations: 61.31 kB / 1.221 GB, free: 1.539 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.8506, allocations: 10.78 kB / 1.221 GB, free: 1.539 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.086e-05/0.8507, allocations: 13.25 kB / 1.221 GB, free: 1.535 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.498e-05/0.8507, allocations: 28.59 kB / 1.221 GB, free: 1.512 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.659e-05/0.8508, allocations: 67.52 kB / 1.221 GB, free: 1.461 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.851, allocations: 141.4 kB / 1.221 GB, free: 1.359 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.851, allocations: 0 / 1.221 GB, free: 1.359 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.492e-06/0.851, allocations: 3.938 kB / 1.221 GB, free: 1.355 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.851, allocations: 0 / 1.221 GB, free: 1.355 MB / 0.92 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.0008116/0.8518, allocations: 0.4901 MB / 1.222 GB, free: 0.875 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.8519, allocations: 9.344 kB / 1.222 GB, free: 0.875 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.786e-05/0.8519, allocations: 18.16 kB / 1.222 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.8523, allocations: 242.9 kB / 1.222 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.8523, allocations: 9.312 kB / 1.222 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.8523, allocations: 17.08 kB / 1.222 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.8526, allocations: 159.8 kB / 1.222 GB, free: 480 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.8526, allocations: 0 / 1.222 GB, free: 480 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.8527, allocations: 1.906 kB / 1.222 GB, free: 480 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.8527, allocations: 3.469 kB / 1.222 GB, free: 480 kB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.8529, allocations: 73.44 kB / 1.222 GB, free: 444 kB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.854, allocations: 0.7309 MB / 1.223 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.8541, allocations: 52.05 kB / 1.223 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.8542, allocations: 35.52 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.8543, allocations: 1.188 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002474/0.8545, allocations: 129.5 kB / 1.223 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.243e-06/0.8545, allocations: 0 / 1.223 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0005077/0.855, allocations: 169 kB / 1.224 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.12e-05/0.8551, allocations: 134.8 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.8553, allocations: 199.9 kB / 1.224 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.8553, allocations: 31.89 kB / 1.224 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.8555, allocations: 127.6 kB / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.065e-05/0.8555, allocations: 37.19 kB / 1.224 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.559e-05/0.8556, allocations: 52.41 kB / 1.224 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.8557, allocations: 327 kB / 1.224 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.8559, allocations: 37.28 kB / 1.224 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.8561, allocations: 144.8 kB / 1.225 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/0.8564, allocations: 205.1 kB / 1.225 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.8564, allocations: 1.094 kB / 1.225 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004148/0.8568, allocations: 206.4 kB / 1.225 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.8569, allocations: 6.906 kB / 1.225 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.8569, allocations: 8.328 kB / 1.225 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.8569, allocations: 5.141 kB / 1.225 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.857, allocations: 35.8 kB / 1.225 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.857, allocations: 5.406 kB / 1.225 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.8572, allocations: 28.16 kB / 1.225 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.8572, allocations: 8.719 kB / 1.225 GB, free: 14.03 MB / 0.9356 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.0001413/0.8574, allocations: 150.8 kB / 1.225 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.364e-05/0.8574, allocations: 20.52 kB / 1.225 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.89e-05/0.8574, allocations: 18.88 kB / 1.225 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.8574, allocations: 6.219 kB / 1.225 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.8575, allocations: 5.016 kB / 1.225 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.8575, allocations: 1.188 kB / 1.225 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008449/0.8583, allocations: 0.5075 MB / 1.226 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.8583, allocations: 0 / 1.226 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.8584, allocations: 20.45 kB / 1.226 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.8584, allocations: 9.406 kB / 1.226 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.8584, allocations: 2.5 kB / 1.226 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.8584, allocations: 1.125 kB / 1.226 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.8584, allocations: 5.031 kB / 1.226 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/0.859, allocations: 361.4 kB / 1.226 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.089e-05/0.859, allocations: 94.58 kB / 1.226 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.8591, allocations: 2.281 kB / 1.226 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.8592, allocations: 18.64 kB / 1.226 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/0.8593, allocations: 13.3 kB / 1.226 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.8593, allocations: 7.906 kB / 1.226 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001373/0.8594, allocations: 146 kB / 1.226 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8594, allocations: 3.938 kB / 1.226 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003381/0.8598, allocations: 30.7 kB / 1.226 GB, free: 12.8 MB / 0.9356 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.0001365/0.8599, allocations: 108.4 kB / 1.227 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003315/0.8602, allocations: 114.5 kB / 1.227 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.8602, allocations: 0.75 kB / 1.227 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.8604, allocations: 51.38 kB / 1.227 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005996/0.861, allocations: 63.94 kB / 1.227 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006815/0.8617, allocations: 350.2 kB / 1.227 GB, free: 12.32 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.862, allocations: 0.7208 MB / 1.228 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.434e-05/0.8621, allocations: 23.61 kB / 1.228 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.77e-05/0.8622, allocations: 17.94 kB / 1.228 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.8622, allocations: 0 / 1.228 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of Templates: time 0.005861/0.868, allocations: 2.108 MB / 1.23 GB, free: 10.54 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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: 8.533556261099875]