Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001991/0.001991, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002002/0.003993, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001201/0.001201, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00147/0.002671, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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.074/1.074, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08892/1.163, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.904/1.904, allocations: 378.2 MB / 0.6077 GB, free: 7.816 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4929/2.397, allocations: 123.3 MB / 0.728 GB, free: 5.828 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 0.7293 GB, free: 4.523 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 9.898e-06/1.144e-05, allocations: 8.781 kB / 0.7294 GB, free: 4.516 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001863/0.001874, allocations: 1.892 MB / 0.7312 GB, free: 2.641 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0006489/0.002523, allocations: 0.5793 MB / 0.7318 GB, free: 2.062 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.413e-05/0.002587, allocations: 3.938 kB / 0.7318 GB, free: 2.059 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 6.934e-05/0.002657, allocations: 30.44 kB / 0.7318 GB, free: 2.031 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 5.803e-05/0.002715, allocations: 37.44 kB / 0.7318 GB, free: 2.004 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001102/0.002825, allocations: 61.61 kB / 0.7319 GB, free: 1.945 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001661/0.002991, allocations: 177.3 kB / 0.7321 GB, free: 1.773 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.003091, allocations: 35.12 kB / 0.7321 GB, free: 1.738 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.003198, allocations: 91.73 kB / 0.7322 GB, free: 1.648 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.52e-05/0.003253, allocations: 44.31 kB / 0.7322 GB, free: 1.605 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.003276, allocations: 12.53 kB / 0.7322 GB, free: 1.594 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 1.222e-05/0.003289, allocations: 8 kB / 0.7323 GB, free: 1.586 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.247e-05/0.003311, allocations: 20.81 kB / 0.7323 GB, free: 1.566 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.601e-05/0.003347, allocations: 31.88 kB / 0.7323 GB, free: 1.535 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.003462, allocations: 96.98 kB / 0.7324 GB, free: 1.441 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.144e-05/0.003473, allocations: 0 / 0.7324 GB, free: 1.441 MB / 0.698 GB Notification: Performance of FrontEnd: time 6.11e-07/0.003474, allocations: 0 / 0.7324 GB, free: 1.441 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.074e-05/0.003485, allocations: 0 / 0.7324 GB, free: 1.441 MB / 0.698 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.000431/0.003916, allocations: 389.1 kB / 0.7328 GB, free: 1.039 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.003948, allocations: 12.03 kB / 0.7328 GB, free: 1.027 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.003983, allocations: 22.64 kB / 0.7328 GB, free: 1.008 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.00414, allocations: 174.5 kB / 0.733 GB, free: 0.8125 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-06/0.00415, allocations: 9.188 kB / 0.733 GB, free: 0.8047 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.253e-05/0.004172, allocations: 20.27 kB / 0.733 GB, free: 0.7852 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001394/0.004312, allocations: 134.7 kB / 0.7331 GB, free: 0.6328 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.004319, allocations: 0.9375 kB / 0.7331 GB, free: 0.6328 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.004329, allocations: 12.36 kB / 0.7331 GB, free: 0.6211 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.004335, allocations: 4.438 kB / 0.7331 GB, free: 0.6172 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.258e-05/0.004378, allocations: 39.42 kB / 0.7332 GB, free: 0.582 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004581/0.004836, allocations: 0.5639 MB / 0.7337 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.649e-05/0.004882, allocations: 27.19 kB / 0.7338 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.143e-05/0.004904, allocations: 12.86 kB / 0.7338 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.004921, allocations: 4.688 kB / 0.7338 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001181/0.005039, allocations: 108.8 kB / 0.7339 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.724e-06/0.005041, allocations: 0 / 0.7339 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0001347/0.005175, allocations: 81.78 kB / 0.7339 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.005229, allocations: 137 kB / 0.7341 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.179e-05/0.00532, allocations: 193.2 kB / 0.7343 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.005333, allocations: 26.7 kB / 0.7343 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.819e-05/0.005381, allocations: 119.9 kB / 0.7344 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/0.005405, allocations: 44.2 kB / 0.7344 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.944e-05/0.005444, allocations: 41.67 kB / 0.7345 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.005551, allocations: 327.9 kB / 0.7348 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.837e-05/0.005569, allocations: 15.98 kB / 0.7348 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.877e-05/0.005628, allocations: 119.5 kB / 0.7349 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.005732, allocations: 161.1 kB / 0.7351 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.005735, allocations: 0 / 0.7351 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001242/0.005859, allocations: 136.3 kB / 0.7352 GB, free: 14.26 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.005874, allocations: 11.94 kB / 0.7352 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.005879, allocations: 1.219 kB / 0.7352 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.005889, allocations: 12.03 kB / 0.7352 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.666e-05/0.005966, allocations: 43.86 kB / 0.7353 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.005973, allocations: 12.48 kB / 0.7353 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.535e-05/0.006029, allocations: 17.05 kB / 0.7353 GB, free: 14.17 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.006037, allocations: 12 kB / 0.7353 GB, free: 14.16 MB / 0.7136 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,intNoReset.trigger_internal,intDef.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 6.112e-05/0.006098, allocations: 126.7 kB / 0.7354 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.585e-05/0.006114, allocations: 11.98 kB / 0.7354 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.696e-05/0.006141, allocations: 25.39 kB / 0.7355 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.006144, allocations: 5.25 kB / 0.7355 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.006146, allocations: 0 / 0.7355 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.006149, allocations: 0 / 0.7355 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002703/0.00642, allocations: 350.9 kB / 0.7358 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.006421, allocations: 0 / 0.7358 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.984e-05/0.00647, allocations: 23.86 kB / 0.7358 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.357e-05/0.006484, allocations: 12.47 kB / 0.7358 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.006487, allocations: 5.031 kB / 0.7359 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.006495, allocations: 0 / 0.7359 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.006498, allocations: 4 kB / 0.7359 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.006499, allocations: 2.75 kB / 0.7359 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001439/0.006642, allocations: 280.4 kB / 0.7361 GB, free: 13.28 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.006656, allocations: 0 / 0.7361 GB, free: 13.28 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.7e-05/0.006723, allocations: 11.98 kB / 0.7361 GB, free: 13.27 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.008e-05/0.006753, allocations: 15.92 kB / 0.7362 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.006758, allocations: 0 / 0.7362 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.026e-05/0.006798, allocations: 64.33 kB / 0.7362 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006798, allocations: 0 / 0.7362 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001778/0.006976, allocations: 27.94 kB / 0.7362 GB, free: 13.16 MB / 0.7136 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.000134/0.00711, allocations: 84.48 kB / 0.7363 GB, free: 13.07 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.401e-05/0.007204, allocations: 80.12 kB / 0.7364 GB, free: 12.99 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.00721, allocations: 8 kB / 0.7364 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.613e-05/0.007247, allocations: 32.72 kB / 0.7364 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.00751, allocations: 82.3 kB / 0.7365 GB, free: 12.87 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005203/0.008031, allocations: 323.4 kB / 0.7368 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.957e-05/0.00807, allocations: 71.98 kB / 0.7369 GB, free: 12.43 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.464e-05/0.008115, allocations: 23.75 kB / 0.7369 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.956e-05/0.008194, allocations: 79.36 kB / 0.737 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of SimCode: time 5.01e-07/0.008195, allocations: 0 / 0.737 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of Templates: time 0.00351/0.01171, allocations: 2.266 MB / 0.7392 GB, free: 10.2 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.043907146900892]