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.001283/0.001283, allocations: 117.7 kB / 17.13 MB, free: 5.758 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.001296/0.001296, allocations: 194.1 kB / 20.08 MB, free: 2.848 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.504/1.504, allocations: 225.6 MB / 248.5 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.596/2.596, allocations: 443.5 MB / 0.7293 GB, free: 14.5 MB / 0.5763 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001985/0.001985, allocations: 67.89 kB / 1.057 GB, free: 1.988 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3566, allocations: 160.7 MB / 1.214 GB, free: 0.9609 MB / 0.9513 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003362/0.3599, allocations: 1.824 MB / 1.216 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001202/0.3611, allocations: 0.5494 MB / 1.216 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.3612, allocations: 7.938 kB / 1.216 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.3614, allocations: 23.72 kB / 1.216 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.268e-05/0.3615, allocations: 27.73 kB / 1.216 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002431/0.3617, allocations: 67.86 kB / 1.217 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.362, allocations: 175.5 kB / 1.217 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.3621, allocations: 33.66 kB / 1.217 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.97e-05/0.3622, allocations: 55.73 kB / 1.217 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.45e-05/0.3623, allocations: 59.69 kB / 1.217 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.3623, allocations: 15.94 kB / 1.217 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.213e-05/0.3623, allocations: 12 kB / 1.217 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.001e-05/0.3624, allocations: 27.91 kB / 1.217 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.733e-05/0.3625, allocations: 63.61 kB / 1.217 GB, free: 14 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.3627, allocations: 139.2 kB / 1.217 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3627, allocations: 0 / 1.217 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.011e-06/0.3627, allocations: 4 kB / 1.217 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.3627, allocations: 0 / 1.217 GB, free: 13.86 MB / 0.9669 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.0007755/0.3635, allocations: 478.5 kB / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3635, allocations: 12.03 kB / 1.218 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.643e-05/0.3636, allocations: 16.84 kB / 1.218 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.3639, allocations: 236 kB / 1.218 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.3639, allocations: 8.375 kB / 1.218 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.503e-05/0.364, allocations: 16.33 kB / 1.218 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.3643, allocations: 159.7 kB / 1.218 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3643, allocations: 0 / 1.218 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.3643, allocations: 8 kB / 1.218 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.3643, allocations: 0 / 1.218 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002646/0.3646, allocations: 75.88 kB / 1.218 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009831/0.3656, allocations: 0.7356 MB / 1.219 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.3657, allocations: 42.56 kB / 1.219 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.3658, allocations: 40.77 kB / 1.219 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.3659, allocations: 0 / 1.219 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.3661, allocations: 130.7 kB / 1.219 GB, free: 11.72 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.3661, allocations: 0 / 1.219 GB, free: 11.72 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0005129/0.3666, allocations: 169.6 kB / 1.219 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.146e-05/0.3667, allocations: 132.5 kB / 1.219 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.3669, allocations: 203.2 kB / 1.219 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.367, allocations: 33.7 kB / 1.219 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.3671, allocations: 128.1 kB / 1.22 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.512e-05/0.3671, allocations: 43.66 kB / 1.22 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.912e-05/0.3672, allocations: 45.66 kB / 1.22 GB, free: 10.92 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3673, allocations: 326.8 kB / 1.22 GB, free: 10.59 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.3675, allocations: 35.97 kB / 1.22 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.3677, allocations: 154.4 kB / 1.22 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.368, allocations: 194.4 kB / 1.22 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.368, allocations: 4 kB / 1.22 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004369/0.3685, allocations: 209.5 kB / 1.221 GB, free: 9.895 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3685, allocations: 8 kB / 1.221 GB, free: 9.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3685, allocations: 4 kB / 1.221 GB, free: 9.883 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.3685, allocations: 4 kB / 1.221 GB, free: 9.879 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.3686, allocations: 31.92 kB / 1.221 GB, free: 9.848 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3687, allocations: 7.938 kB / 1.221 GB, free: 9.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.3688, allocations: 27.88 kB / 1.221 GB, free: 9.812 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.3688, allocations: 8 kB / 1.221 GB, free: 9.805 MB / 0.9669 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.0001306/0.369, allocations: 149.8 kB / 1.221 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.369, allocations: 15.91 kB / 1.221 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.849e-05/0.369, allocations: 21.39 kB / 1.221 GB, free: 9.609 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.369, allocations: 4 kB / 1.221 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.369, allocations: 0 / 1.221 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.369, allocations: 0 / 1.221 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00082/0.3699, allocations: 0.5171 MB / 1.221 GB, free: 9.031 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3699, allocations: 0 / 1.221 GB, free: 9.031 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.37, allocations: 15.98 kB / 1.221 GB, free: 9.016 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.37, allocations: 0 / 1.221 GB, free: 9.016 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.37, allocations: 8 kB / 1.221 GB, free: 9.008 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.37, allocations: 3.938 kB / 1.221 GB, free: 9.004 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.37, allocations: 7.938 kB / 1.221 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005422/0.3706, allocations: 356.3 kB / 1.222 GB, free: 8.625 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.366e-05/0.3706, allocations: 89.02 kB / 1.222 GB, free: 8.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.3707, allocations: 12.03 kB / 1.222 GB, free: 8.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.3708, allocations: 15.98 kB / 1.222 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.3709, allocations: 19.98 kB / 1.222 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.3709, allocations: 11.94 kB / 1.222 GB, free: 8.461 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001284/0.371, allocations: 144.2 kB / 1.222 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.371, allocations: 0 / 1.222 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003291/0.3714, allocations: 28 kB / 1.222 GB, free: 8.293 MB / 0.9669 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.0001535/0.3715, allocations: 111.2 kB / 1.222 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003447/0.3718, allocations: 116.1 kB / 1.222 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3719, allocations: 0 / 1.222 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.372, allocations: 49.03 kB / 1.222 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006105/0.3726, allocations: 62.58 kB / 1.222 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007092/0.3733, allocations: 385.5 kB / 1.223 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.3737, allocations: 0.7319 MB / 1.223 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.723e-05/0.3738, allocations: 19.44 kB / 1.223 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of SimCode: time 4.91e-07/0.3738, allocations: 0 / 1.223 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of Templates: time 0.004336/0.3781, allocations: 2.147 MB / 1.226 GB, free: 4.625 MB / 0.9669 GB " [Timeout remaining time 300] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.302658729022369]