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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001114, allocations: 114.5 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 185.6 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.499/2.499, allocations: 437 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.91 kB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.109/1.111, allocations: 151.6 MB / 1.167 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003881/1.115, allocations: 1.817 MB / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001244/1.116, allocations: 0.5377 MB / 1.17 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001771/1.116, allocations: 0 / 1.17 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001874/1.116, allocations: 27.72 kB / 1.17 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001283/1.116, allocations: 31.69 kB / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/1.117, allocations: 63.91 kB / 1.17 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003138/1.117, allocations: 183.4 kB / 1.17 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/1.117, allocations: 45.64 kB / 1.17 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/1.117, allocations: 59.78 kB / 1.17 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.49e-05/1.117, allocations: 55.64 kB / 1.17 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.154e-05/1.118, allocations: 12 kB / 1.17 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.624e-05/1.118, allocations: 12 kB / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.499e-05/1.118, allocations: 31.84 kB / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.872e-05/1.118, allocations: 63.61 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002587/1.118, allocations: 135.8 kB / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/1.118, allocations: 4 kB / 1.17 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.306e-06/1.118, allocations: 3.938 kB / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.468e-06/1.118, allocations: 3.938 kB / 1.17 GB, free: 0.7148 MB / 0.8887 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.0008896/1.119, allocations: 474.6 kB / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/1.119, allocations: 12.92 kB / 1.171 GB, free: 196 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.372e-05/1.119, allocations: 16.84 kB / 1.171 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/1.119, allocations: 236 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/1.119, allocations: 12.38 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.032e-05/1.12, allocations: 12.38 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003315/1.12, allocations: 160.4 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/1.12, allocations: 0 / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/1.12, allocations: 8 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/1.12, allocations: 0 / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/1.12, allocations: 75.88 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/1.121, allocations: 0.7395 MB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/1.122, allocations: 42.5 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/1.122, allocations: 36.83 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/1.122, allocations: 4 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/1.122, allocations: 126.6 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.624e-06/1.122, allocations: 0 / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0005565/1.123, allocations: 165.6 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/1.123, allocations: 140.8 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/1.123, allocations: 199 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/1.123, allocations: 29.7 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/1.123, allocations: 128.1 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.3e-05/1.123, allocations: 43.67 kB / 1.173 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.154e-05/1.123, allocations: 37.7 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001618/1.123, allocations: 326.8 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/1.123, allocations: 44.03 kB / 1.173 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/1.124, allocations: 148 kB / 1.173 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000361/1.124, allocations: 206.3 kB / 1.174 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/1.124, allocations: 0 / 1.174 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004201/1.124, allocations: 213.3 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/1.124, allocations: 7.984 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/1.125, allocations: 4 kB / 1.174 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/1.125, allocations: 8 kB / 1.174 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/1.125, allocations: 31.92 kB / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/1.125, allocations: 4 kB / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/1.125, allocations: 28.16 kB / 1.174 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/1.125, allocations: 12.23 kB / 1.174 GB, free: 12.66 MB / 0.9044 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.0001371/1.125, allocations: 145.6 kB / 1.174 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/1.125, allocations: 19.91 kB / 1.174 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.852e-05/1.125, allocations: 17.41 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/1.125, allocations: 7.922 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/1.125, allocations: 4 kB / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/1.125, allocations: 0 / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007846/1.126, allocations: 0.5132 MB / 1.175 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/1.126, allocations: 4 kB / 1.175 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/1.126, allocations: 19.92 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/1.126, allocations: 0 / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/1.126, allocations: 8 kB / 1.175 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/1.126, allocations: 0 / 1.175 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/1.126, allocations: 3.938 kB / 1.175 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005212/1.127, allocations: 364.2 kB / 1.175 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-05/1.127, allocations: 92.95 kB / 1.175 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/1.127, allocations: 12.03 kB / 1.175 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/1.127, allocations: 11.98 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/1.127, allocations: 19.92 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/1.127, allocations: 4.062 kB / 1.175 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.00013/1.127, allocations: 140.4 kB / 1.175 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.31e-07/1.127, allocations: 0 / 1.175 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003387/1.127, allocations: 28 kB / 1.175 GB, free: 11.15 MB / 0.9044 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.000146/1.128, allocations: 116.1 kB / 1.175 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003402/1.128, allocations: 119.7 kB / 1.175 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/1.128, allocations: 0 / 1.175 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001485/1.128, allocations: 52.91 kB / 1.176 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005299/1.129, allocations: 67.05 kB / 1.176 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006469/1.129, allocations: 373.5 kB / 1.176 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/1.13, allocations: 0.7281 MB / 1.177 GB, free: 9.641 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.221e-05/1.13, allocations: 15.44 kB / 1.177 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of SimCode: time 2e-07/1.13, allocations: 0 / 1.177 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of Templates: time 0.004698/1.134, allocations: 2.157 MB / 1.179 GB, free: 7.48 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) 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/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches