Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.006628/0.006628, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001536/0.001536, allocations: 196.4 kB / 16.68 MB, free: 5.957 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.207/1.207, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.003/2.003, allocations: 390.2 MB / 0.6648 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 59.91 kB / 0.9508 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7625/0.7637, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003145/0.7669, allocations: 1.81 MB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009399/0.7678, allocations: 0.5445 MB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.582e-05/0.7679, allocations: 7 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.7681, allocations: 21.92 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.697e-05/0.7682, allocations: 29.94 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.7684, allocations: 64.73 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.7686, allocations: 168.9 kB / 1.091 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.7688, allocations: 57.58 kB / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.403e-05/0.7689, allocations: 53.48 kB / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.905e-05/0.769, allocations: 57.25 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.828e-05/0.769, allocations: 10.22 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.542e-05/0.7691, allocations: 10 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.202e-05/0.7691, allocations: 33.84 kB / 1.091 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.644e-05/0.7692, allocations: 68.31 kB / 1.091 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.7694, allocations: 130.8 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.7694, allocations: 0.625 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.994e-06/0.7694, allocations: 0 / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.7694, allocations: 4.75 kB / 1.091 GB, free: 3.492 MB / 0.8575 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.0006757/0.7701, allocations: 475 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.7702, allocations: 9.438 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.104e-05/0.7702, allocations: 23.23 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.7705, allocations: 237 kB / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.7705, allocations: 9.625 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.7706, allocations: 15.91 kB / 1.092 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003062/0.7709, allocations: 148 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.7709, allocations: 4.656 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.771, allocations: 6.078 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.771, allocations: 2.938 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/0.7712, allocations: 69.23 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008486/0.7721, allocations: 0.741 MB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.7722, allocations: 52.27 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.7724, allocations: 35.62 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.7724, allocations: 0.9688 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002179/0.7726, allocations: 135.2 kB / 1.093 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.7726, allocations: 0 / 1.093 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004742/0.7731, allocations: 169 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.7732, allocations: 131.4 kB / 1.093 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.7733, allocations: 196 kB / 1.093 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.7734, allocations: 31.23 kB / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.138e-05/0.7734, allocations: 133.6 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.7735, allocations: 35.78 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.7735, allocations: 44.56 kB / 1.094 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.815e-05/0.7736, allocations: 328.6 kB / 1.094 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.7737, allocations: 37.03 kB / 1.094 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.7739, allocations: 159.3 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.7742, allocations: 201.9 kB / 1.094 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.7742, allocations: 1.438 kB / 1.094 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003829/0.7746, allocations: 207.1 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.7746, allocations: 8.062 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.7746, allocations: 3.938 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.7747, allocations: 9.125 kB / 1.094 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.7748, allocations: 33.28 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.7748, allocations: 6.188 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.775, allocations: 28.16 kB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.775, allocations: 9.219 kB / 1.094 GB, free: 492 kB / 0.8575 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 9.701e-05/0.7751, allocations: 144.8 kB / 1.095 GB, free: 348 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.7751, allocations: 18.05 kB / 1.095 GB, free: 340 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.922e-05/0.7752, allocations: 25.03 kB / 1.095 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.7752, allocations: 2.234 kB / 1.095 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.7752, allocations: 5.281 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.7752, allocations: 2.234 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008433/0.7761, allocations: 0.507 MB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.7761, allocations: 0.875 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.7762, allocations: 19.61 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.7762, allocations: 2 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.7763, allocations: 6.891 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.7763, allocations: 1.812 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.7763, allocations: 9.469 kB / 1.095 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005543/0.7768, allocations: 361 kB / 1.096 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.731e-05/0.7769, allocations: 95.73 kB / 1.096 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.777, allocations: 3.266 kB / 1.096 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.7771, allocations: 15.69 kB / 1.096 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.582e-05/0.7772, allocations: 17.02 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.7772, allocations: 9.375 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001366/0.7774, allocations: 142.4 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7774, allocations: 0 / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003351/0.7777, allocations: 31.09 kB / 1.096 GB, free: 15.38 MB / 0.8731 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.0001405/0.7779, allocations: 103.7 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003682/0.7782, allocations: 118.9 kB / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7782, allocations: 0 / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001664/0.7784, allocations: 48.8 kB / 1.096 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005956/0.779, allocations: 62.27 kB / 1.096 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007237/0.7797, allocations: 350.5 kB / 1.097 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.7803, allocations: 0.7236 MB / 1.097 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.385e-05/0.7804, allocations: 20.67 kB / 1.097 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.61e-05/0.7804, allocations: 17.03 kB / 1.097 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of SimCode: time 2.9e-07/0.7804, allocations: 0.875 kB / 1.097 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of Templates: time 0.005963/0.7864, allocations: 2.098 MB / 1.099 GB, free: 14.05 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches