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.00192/0.00192, allocations: 83.69 kB / 20.23 MB, free: 4.188 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.002149/0.002149, allocations: 157.3 kB / 23.55 MB, free: 0.8789 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 1.529/1.529, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.978/2.978, allocations: 377.8 MB / 0.6232 GB, free: 8.535 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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 2.224e-06/2.224e-06, allocations: 0 / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.636e-05/3.858e-05, allocations: 7 kB / 0.8108 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.005917/0.005956, allocations: 1.814 MB / 0.8126 GB, free: 292 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002207/0.008162, allocations: 0.5547 MB / 0.8131 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.008329, allocations: 9.625 kB / 0.8131 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.008551, allocations: 23.73 kB / 0.8132 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.008711, allocations: 31.67 kB / 0.8132 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.009116, allocations: 69.44 kB / 0.8133 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004748/0.009591, allocations: 179.3 kB / 0.8134 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.009784, allocations: 33.78 kB / 0.8135 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002266/0.01001, allocations: 76.3 kB / 0.8135 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.01013, allocations: 39.88 kB / 0.8136 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.319e-05/0.01018, allocations: 12.91 kB / 0.8136 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 3.899e-05/0.01021, allocations: 12 kB / 0.8136 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.083e-05/0.01029, allocations: 28.48 kB / 0.8136 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.01039, allocations: 39.84 kB / 0.8137 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003708/0.01076, allocations: 137 kB / 0.8138 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.05e-05/0.01077, allocations: 3.984 kB / 0.8138 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.224e-06/0.01078, allocations: 0 / 0.8138 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 7.835e-06/0.01078, allocations: 0 / 0.8138 GB, free: 15.05 MB / 0.7761 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.001293/0.01208, allocations: 0.5287 MB / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.01212, allocations: 8.031 kB / 0.8143 GB, free: 14.47 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.01222, allocations: 32.8 kB / 0.8144 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.01266, allocations: 180.8 kB / 0.8145 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.01269, allocations: 9.094 kB / 0.8145 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.596e-05/0.01273, allocations: 12.38 kB / 0.8145 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004683/0.0132, allocations: 153.2 kB / 0.8147 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.01322, allocations: 1.812 kB / 0.8147 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.01325, allocations: 8.375 kB / 0.8147 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.01326, allocations: 3.938 kB / 0.8147 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003341/0.01359, allocations: 64.44 kB / 0.8148 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.01547, allocations: 0.9139 MB / 0.8157 GB, free: 13 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.01569, allocations: 47.73 kB / 0.8157 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.01586, allocations: 36.7 kB / 0.8157 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.01588, allocations: 0 / 0.8157 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003948/0.01627, allocations: 141 kB / 0.8159 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 2.024e-06/0.01628, allocations: 0 / 0.8159 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0007717/0.01705, allocations: 155.3 kB / 0.816 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.0172, allocations: 136.5 kB / 0.8162 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004514/0.01765, allocations: 268.4 kB / 0.8164 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.154e-05/0.0177, allocations: 34.52 kB / 0.8164 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/0.01791, allocations: 174.7 kB / 0.8166 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 7.915e-05/0.01799, allocations: 44.83 kB / 0.8166 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.01813, allocations: 51.36 kB / 0.8167 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000423/0.01855, allocations: 0.5013 MB / 0.8172 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.01874, allocations: 31.98 kB / 0.8172 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004106/0.01915, allocations: 192.7 kB / 0.8174 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/0.01978, allocations: 244.5 kB / 0.8176 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.01979, allocations: 0 / 0.8176 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007272/0.02052, allocations: 205 kB / 0.8178 GB, free: 10.51 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/0.02054, allocations: 8 kB / 0.8178 GB, free: 10.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.02055, allocations: 9.219 kB / 0.8178 GB, free: 10.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.711e-05/0.02058, allocations: 4 kB / 0.8179 GB, free: 10.49 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.0208, allocations: 31.97 kB / 0.8179 GB, free: 10.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.852e-05/0.02082, allocations: 8.594 kB / 0.8179 GB, free: 10.45 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.02104, allocations: 20.67 kB / 0.8179 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.02108, allocations: 8 kB / 0.8179 GB, free: 10.43 MB / 0.7761 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.000243/0.02132, allocations: 195 kB / 0.8181 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.679e-05/0.02139, allocations: 19.84 kB / 0.8181 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.961e-05/0.02145, allocations: 17.47 kB / 0.8181 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.02146, allocations: 4 kB / 0.8181 GB, free: 10.19 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.02147, allocations: 3.984 kB / 0.8181 GB, free: 10.19 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.02148, allocations: 4.25 kB / 0.8182 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.02285, allocations: 0.5473 MB / 0.8187 GB, free: 9.594 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.02285, allocations: 0 / 0.8187 GB, free: 9.594 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.02306, allocations: 17.25 kB / 0.8187 GB, free: 9.578 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.02306, allocations: 0 / 0.8187 GB, free: 9.578 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.02309, allocations: 7.938 kB / 0.8187 GB, free: 9.57 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.02309, allocations: 3.984 kB / 0.8187 GB, free: 9.566 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.0231, allocations: 1.031 kB / 0.8187 GB, free: 9.566 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009254/0.02402, allocations: 451.3 kB / 0.8191 GB, free: 9.098 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.465e-05/0.02408, allocations: 15.84 kB / 0.8192 GB, free: 9.082 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.02412, allocations: 8 kB / 0.8192 GB, free: 9.074 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/0.02437, allocations: 9.016 kB / 0.8192 GB, free: 9.066 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.18e-05/0.02445, allocations: 11.98 kB / 0.8192 GB, free: 9.055 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.02446, allocations: 5.062 kB / 0.8192 GB, free: 9.051 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002479/0.02471, allocations: 184.2 kB / 0.8194 GB, free: 8.871 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.8e-07/0.02471, allocations: 0 / 0.8194 GB, free: 8.871 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0006371/0.02535, allocations: 28.66 kB / 0.8194 GB, free: 8.844 MB / 0.7761 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.0002092/0.02556, allocations: 112.2 kB / 0.8195 GB, free: 8.723 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0005506/0.02611, allocations: 121.8 kB / 0.8196 GB, free: 8.602 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.02612, allocations: 5.25 kB / 0.8196 GB, free: 8.598 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002257/0.02634, allocations: 47.61 kB / 0.8197 GB, free: 8.547 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.02736, allocations: 78.75 kB / 0.8197 GB, free: 8.477 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.02845, allocations: 348.4 kB / 0.8201 GB, free: 8.098 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.02865, allocations: 108.3 kB / 0.8202 GB, free: 7.969 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001268/0.02878, allocations: 22.88 kB / 0.8202 GB, free: 7.949 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.477e-05/0.02886, allocations: 21.09 kB / 0.8202 GB, free: 7.93 MB / 0.7761 GB Notification: Performance of SimCode: time 9.12e-07/0.02886, allocations: 5.875 kB / 0.8202 GB, free: 7.926 MB / 0.7761 GB Notification: Performance of Templates: time 0.01078/0.03965, allocations: 2.127 MB / 0.8223 GB, free: 5.859 MB / 0.7761 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 -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","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.044666609959677]