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.001573/0.001573, allocations: 111.9 kB / 17.08 MB, free: 5.961 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.001587/0.001587, allocations: 191.7 kB / 20.03 MB, free: 3.039 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.43/1.43, allocations: 222.9 MB / 245.7 MB, free: 4.203 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.635/2.635, allocations: 437.1 MB / 0.7177 GB, free: 4.512 MB / 0.5606 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.001966/0.001966, allocations: 67.89 kB / 1.028 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.294, allocations: 151.6 MB / 1.176 GB, free: 5.902 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00319/0.2972, allocations: 1.811 MB / 1.178 GB, free: 4.07 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.2982, allocations: 0.5338 MB / 1.178 GB, free: 3.531 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.2983, allocations: 7.938 kB / 1.178 GB, free: 3.523 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.2985, allocations: 23.73 kB / 1.178 GB, free: 3.5 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.225e-05/0.2986, allocations: 27.72 kB / 1.178 GB, free: 3.473 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.2989, allocations: 71.92 kB / 1.178 GB, free: 3.402 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002575/0.2991, allocations: 175.4 kB / 1.178 GB, free: 3.23 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.2993, allocations: 45.66 kB / 1.178 GB, free: 3.184 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.158e-05/0.2994, allocations: 51.78 kB / 1.179 GB, free: 3.133 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.337e-05/0.2995, allocations: 67.56 kB / 1.179 GB, free: 3.066 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.2995, allocations: 12 kB / 1.179 GB, free: 3.055 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 3.228e-05/0.2996, allocations: 12 kB / 1.179 GB, free: 3.043 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.835e-05/0.2996, allocations: 23.92 kB / 1.179 GB, free: 3.02 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.481e-05/0.2997, allocations: 67.55 kB / 1.179 GB, free: 2.953 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.2999, allocations: 139.3 kB / 1.179 GB, free: 2.816 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3, allocations: 0 / 1.179 GB, free: 2.816 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.144e-06/0.3, allocations: 0 / 1.179 GB, free: 2.816 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.194e-06/0.3, allocations: 0 / 1.179 GB, free: 2.816 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.0009257/0.3009, allocations: 478.5 kB / 1.179 GB, free: 2.301 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.301, allocations: 12.03 kB / 1.179 GB, free: 2.289 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.112e-05/0.301, allocations: 20.83 kB / 1.179 GB, free: 2.27 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.3015, allocations: 232 kB / 1.18 GB, free: 2.004 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.3015, allocations: 12.38 kB / 1.18 GB, free: 1.992 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.3015, allocations: 12.38 kB / 1.18 GB, free: 1.98 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003293/0.3019, allocations: 164 kB / 1.18 GB, free: 1.801 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3019, allocations: 0 / 1.18 GB, free: 1.801 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.3019, allocations: 11.98 kB / 1.18 GB, free: 1.789 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3019, allocations: 0 / 1.18 GB, free: 1.789 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.3022, allocations: 70.12 kB / 1.18 GB, free: 1.723 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.3032, allocations: 0.7473 MB / 1.181 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.3034, allocations: 50.55 kB / 1.181 GB, free: 0.8516 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.3035, allocations: 28.84 kB / 1.181 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.3035, allocations: 4 kB / 1.181 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002513/0.3038, allocations: 130.6 kB / 1.181 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.3038, allocations: 0 / 1.181 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0005139/0.3043, allocations: 161.5 kB / 1.181 GB, free: 0.5 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.3044, allocations: 136.5 kB / 1.181 GB, free: 344 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.3047, allocations: 202.7 kB / 1.181 GB, free: 132 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.326e-05/0.3047, allocations: 37.89 kB / 1.181 GB, free: 88 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.3048, allocations: 131.9 kB / 1.181 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.3049, allocations: 39.88 kB / 1.181 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.639e-05/0.3049, allocations: 37.7 kB / 1.181 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3051, allocations: 334.8 kB / 1.182 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.3053, allocations: 39.97 kB / 1.182 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.3055, allocations: 142.5 kB / 1.182 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.3058, allocations: 202.3 kB / 1.182 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3058, allocations: 0 / 1.182 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004377/0.3063, allocations: 213.6 kB / 1.182 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.3063, allocations: 8 kB / 1.182 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3063, allocations: 4 kB / 1.182 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.728e-05/0.3064, allocations: 8 kB / 1.182 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.3065, allocations: 31.92 kB / 1.182 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.3065, allocations: 7.984 kB / 1.182 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.3067, allocations: 27.88 kB / 1.182 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.3067, allocations: 8 kB / 1.182 GB, free: 14.75 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.0001542/0.3069, allocations: 145.7 kB / 1.183 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.3069, allocations: 16.14 kB / 1.183 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.04e-05/0.307, allocations: 21.39 kB / 1.183 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.307, allocations: 7.984 kB / 1.183 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.307, allocations: 0 / 1.183 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.307, allocations: 0 / 1.183 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008707/0.3079, allocations: 0.5132 MB / 1.183 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.3079, allocations: 4.312 kB / 1.183 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.308, allocations: 15.98 kB / 1.183 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.308, allocations: 4 kB / 1.183 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.308, allocations: 8 kB / 1.183 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3081, allocations: 3.938 kB / 1.183 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.3081, allocations: 3.938 kB / 1.183 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005701/0.3086, allocations: 360.3 kB / 1.183 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.852e-05/0.3087, allocations: 93.05 kB / 1.184 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.3088, allocations: 8 kB / 1.184 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.3089, allocations: 7.984 kB / 1.184 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.309, allocations: 23.92 kB / 1.184 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.309, allocations: 4 kB / 1.184 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001282/0.3092, allocations: 140.4 kB / 1.184 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3092, allocations: 0 / 1.184 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003457/0.3095, allocations: 28 kB / 1.184 GB, free: 13.25 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.0001428/0.3097, allocations: 115.1 kB / 1.184 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003534/0.31, allocations: 119.7 kB / 1.184 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.31, allocations: 0 / 1.184 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001672/0.3102, allocations: 55.84 kB / 1.184 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005912/0.3108, allocations: 67.28 kB / 1.184 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007008/0.3115, allocations: 385.6 kB / 1.184 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.3119, allocations: 0.7203 MB / 1.185 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.186e-05/0.312, allocations: 15.44 kB / 1.185 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of SimCode: time 2.8e-07/0.312, allocations: 7.938 kB / 1.185 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of Templates: time 0.004482/0.3165, allocations: 2.14 MB / 1.187 GB, free: 9.57 MB / 0.9356 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: 10.365638836985454]