Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008028/0.0008028, allocations: 76.5 kB / 19.93 MB, free: 4.629 MB / 18.57 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.0008509/0.0008509, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8669/0.8669, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.698/1.698, allocations: 389 MB / 0.6338 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.079e-05, allocations: 2.281 kB / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001949/0.00197, allocations: 1.77 MB / 1.003 GB, free: 11.22 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.000719/0.002689, allocations: 0.5571 MB / 1.003 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.422e-05/0.002773, allocations: 7.938 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.002899, allocations: 23.72 kB / 1.003 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.906e-05/0.002958, allocations: 31.67 kB / 1.003 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001855/0.003143, allocations: 75.84 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001713/0.003314, allocations: 167.5 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.003439, allocations: 37.77 kB / 1.004 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.87e-05/0.003527, allocations: 75.8 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.38e-05/0.003581, allocations: 39.83 kB / 1.004 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.003605, allocations: 12 kB / 1.004 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 1.303e-05/0.003618, allocations: 12 kB / 1.004 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.007e-05/0.003648, allocations: 31.84 kB / 1.004 GB, free: 10.15 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.955e-05/0.003688, allocations: 35.91 kB / 1.004 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.003846, allocations: 139.4 kB / 1.004 GB, free: 9.98 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.003848, allocations: 4 kB / 1.004 GB, free: 9.977 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.062e-06/0.003849, allocations: 0 / 1.004 GB, free: 9.977 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.047e-06/0.003853, allocations: 0 / 1.004 GB, free: 9.977 MB / 0.9636 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.0005224/0.004375, allocations: 435.2 kB / 1.004 GB, free: 9.516 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.004411, allocations: 12.75 kB / 1.004 GB, free: 9.504 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.004449, allocations: 20.8 kB / 1.004 GB, free: 9.484 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.004653, allocations: 173.4 kB / 1.004 GB, free: 9.289 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.004666, allocations: 8.375 kB / 1.004 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.00469, allocations: 12.38 kB / 1.004 GB, free: 9.27 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002048/0.004895, allocations: 144.9 kB / 1.005 GB, free: 9.109 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.004904, allocations: 192 / 1.005 GB, free: 9.109 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.004919, allocations: 16.34 kB / 1.005 GB, free: 9.094 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.004925, allocations: 3.938 kB / 1.005 GB, free: 9.09 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.005051, allocations: 67.89 kB / 1.005 GB, free: 9.023 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006042/0.005656, allocations: 0.6572 MB / 1.005 GB, free: 8.32 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 9.552e-05/0.005751, allocations: 42.56 kB / 1.005 GB, free: 8.27 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.612e-05/0.005807, allocations: 36.77 kB / 1.005 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.005824, allocations: 0 / 1.005 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001466/0.005971, allocations: 126.9 kB / 1.006 GB, free: 8.082 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=11): time 9.72e-07/0.005972, allocations: 7.938 kB / 1.006 GB, free: 8.074 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11): time 0.0002998/0.006272, allocations: 165.4 kB / 1.006 GB, free: 7.906 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.006326, allocations: 132.5 kB / 1.006 GB, free: 7.746 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.006442, allocations: 189.8 kB / 1.006 GB, free: 7.555 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.006456, allocations: 29.7 kB / 1.006 GB, free: 7.52 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.965e-05/0.006526, allocations: 135.9 kB / 1.006 GB, free: 7.383 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.006548, allocations: 39.89 kB / 1.006 GB, free: 7.344 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.467e-05/0.006593, allocations: 41.7 kB / 1.006 GB, free: 7.297 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.196e-05/0.006675, allocations: 330.8 kB / 1.007 GB, free: 6.965 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.26e-05/0.006747, allocations: 39.97 kB / 1.007 GB, free: 6.926 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.006851, allocations: 146.4 kB / 1.007 GB, free: 6.73 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.00704, allocations: 210.3 kB / 1.007 GB, free: 6.473 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.007043, allocations: 0 / 1.007 GB, free: 6.473 MB / 0.9636 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002258/0.007269, allocations: 201.6 kB / 1.007 GB, free: 6.27 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.007281, allocations: 13.59 kB / 1.007 GB, free: 6.258 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.371e-06/0.007288, allocations: 4 kB / 1.007 GB, free: 6.254 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.0073, allocations: 4 kB / 1.007 GB, free: 6.25 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.576e-05/0.007366, allocations: 35.91 kB / 1.007 GB, free: 6.215 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.007373, allocations: 7.938 kB / 1.007 GB, free: 6.207 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.204e-05/0.007445, allocations: 27.88 kB / 1.007 GB, free: 6.18 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-06/0.007454, allocations: 8 kB / 1.007 GB, free: 6.172 MB / 0.9636 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 7.821e-05/0.007532, allocations: 137.7 kB / 1.007 GB, free: 6.027 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.726e-05/0.00755, allocations: 23.84 kB / 1.007 GB, free: 6.004 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.007581, allocations: 21.45 kB / 1.007 GB, free: 5.98 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.007584, allocations: 4 kB / 1.007 GB, free: 5.977 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.007588, allocations: 0 / 1.007 GB, free: 5.977 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.007591, allocations: 0 / 1.007 GB, free: 5.977 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004051/0.007996, allocations: 457.5 kB / 1.008 GB, free: 5.492 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.007998, allocations: 0 / 1.008 GB, free: 5.492 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.292e-05/0.008051, allocations: 19.92 kB / 1.008 GB, free: 5.473 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.008054, allocations: 8.047 kB / 1.008 GB, free: 5.465 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.008064, allocations: 3.984 kB / 1.008 GB, free: 5.461 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.008068, allocations: 7.984 kB / 1.008 GB, free: 5.453 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.008069, allocations: 0 / 1.008 GB, free: 5.453 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.008349, allocations: 364.5 kB / 1.008 GB, free: 5.074 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.805e-05/0.008367, allocations: 15.94 kB / 1.008 GB, free: 5.059 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.008384, allocations: 8 kB / 1.008 GB, free: 5.051 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.198e-05/0.008466, allocations: 15.98 kB / 1.008 GB, free: 5.035 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.1e-05/0.008507, allocations: 15.98 kB / 1.008 GB, free: 5.02 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.008513, allocations: 4 kB / 1.008 GB, free: 5.016 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 6.671e-05/0.008579, allocations: 135.4 kB / 1.008 GB, free: 4.883 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.008579, allocations: 0 / 1.008 GB, free: 4.883 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002144/0.008794, allocations: 27.94 kB / 1.008 GB, free: 4.855 MB / 0.9636 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 7.018e-05/0.008864, allocations: 103.2 kB / 1.009 GB, free: 4.746 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001899/0.009054, allocations: 116 kB / 1.009 GB, free: 4.633 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.009056, allocations: 3.938 kB / 1.009 GB, free: 4.629 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.394e-05/0.00914, allocations: 47.91 kB / 1.009 GB, free: 4.582 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.00947, allocations: 68.73 kB / 1.009 GB, free: 4.52 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004211/0.009891, allocations: 354.4 kB / 1.009 GB, free: 4.133 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.164e-05/0.009963, allocations: 108.2 kB / 1.009 GB, free: 4.008 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.654e-05/0.01, allocations: 20.5 kB / 1.009 GB, free: 3.984 MB / 0.9636 GB Notification: Performance of SimCode: time 3.01e-07/0.01, allocations: 0 / 1.009 GB, free: 3.984 MB / 0.9636 GB Notification: Performance of Templates: time 0.002418/0.01242, allocations: 2.162 MB / 1.011 GB, free: 1.832 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 6.501270438544452]