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.001674/0.001674, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.002148/0.002148, allocations: 194.9 kB / 16.26 MB, free: 6.637 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.394/1.394, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.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.511/2.511, allocations: 390.2 MB / 0.6643 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 67.89 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7568/0.7584, allocations: 140.4 MB / 0.9491 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003814/0.7623, allocations: 1.865 MB / 0.9509 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009553/0.7633, allocations: 0.5322 MB / 0.9514 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.7634, allocations: 3.469 kB / 0.9514 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.7636, allocations: 17.08 kB / 0.9515 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.098e-05/0.7637, allocations: 18.97 kB / 0.9515 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002089/0.7639, allocations: 69.95 kB / 0.9515 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.7641, allocations: 166.2 kB / 0.9517 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.7643, allocations: 51.42 kB / 0.9517 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.112e-05/0.7643, allocations: 55.2 kB / 0.9518 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.515e-05/0.7644, allocations: 65.64 kB / 0.9519 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.7644, allocations: 12.94 kB / 0.9519 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.293e-05/0.7645, allocations: 10.97 kB / 0.9519 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.065e-05/0.7645, allocations: 23.86 kB / 0.9519 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.956e-05/0.7646, allocations: 68.33 kB / 0.952 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001473/0.7647, allocations: 126.2 kB / 0.9521 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.7647, allocations: 1.969 kB / 0.9521 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.422e-06/0.7647, allocations: 0 / 0.9521 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.7647, allocations: 0 / 0.9521 GB, free: 6.75 MB / 0.7169 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.0006117/0.7654, allocations: 476.3 kB / 0.9525 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.7654, allocations: 13.73 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.841e-05/0.7655, allocations: 21.5 kB / 0.9526 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.7657, allocations: 220.6 kB / 0.9528 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.7657, allocations: 14.22 kB / 0.9528 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.91e-05/0.7657, allocations: 11.69 kB / 0.9528 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.766, allocations: 151.7 kB / 0.953 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.766, allocations: 7.875 kB / 0.953 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.766, allocations: 5.719 kB / 0.953 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.766, allocations: 3.75 kB / 0.953 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.7663, allocations: 69.12 kB / 0.953 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007665/0.767, allocations: 0.7393 MB / 0.9538 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.7672, allocations: 57.38 kB / 0.9538 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.348e-05/0.7673, allocations: 28.66 kB / 0.9538 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.7673, allocations: 5.547 kB / 0.9539 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002712/0.7676, allocations: 128.9 kB / 0.954 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.7676, allocations: 4 kB / 0.954 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004421/0.768, allocations: 164.3 kB / 0.9541 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.7681, allocations: 131.3 kB / 0.9543 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.7682, allocations: 203.8 kB / 0.9545 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.7683, allocations: 31.42 kB / 0.9545 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.129e-05/0.7683, allocations: 140.4 kB / 0.9546 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.7684, allocations: 24.59 kB / 0.9546 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.7684, allocations: 43.89 kB / 0.9547 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.494e-05/0.7685, allocations: 331.5 kB / 0.955 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.7686, allocations: 36.84 kB / 0.955 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.7687, allocations: 155.4 kB / 0.9552 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.769, allocations: 201.6 kB / 0.9554 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.769, allocations: 5.344 kB / 0.9554 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000346/0.7694, allocations: 202.5 kB / 0.9556 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.7694, allocations: 9.906 kB / 0.9556 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.629e-06/0.7694, allocations: 8.422 kB / 0.9556 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.7694, allocations: 4.375 kB / 0.9556 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.7696, allocations: 36.31 kB / 0.9556 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.7696, allocations: 8.812 kB / 0.9556 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.7697, allocations: 31.77 kB / 0.9557 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.7697, allocations: 12.81 kB / 0.9557 GB, free: 3.438 MB / 0.7169 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 8.586e-05/0.7698, allocations: 137 kB / 0.9558 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/0.7699, allocations: 24.11 kB / 0.9558 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.343e-05/0.7699, allocations: 18.44 kB / 0.9559 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.7699, allocations: 6.375 kB / 0.9559 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.7699, allocations: 1.469 kB / 0.9559 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.7699, allocations: 1.031 kB / 0.9559 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006264/0.7706, allocations: 0.5103 MB / 0.9564 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.7706, allocations: 1.312 kB / 0.9564 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.7707, allocations: 15.33 kB / 0.9564 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.7707, allocations: 5.406 kB / 0.9564 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.7707, allocations: 6.516 kB / 0.9564 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.7707, allocations: 1.469 kB / 0.9564 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.7707, allocations: 9.156 kB / 0.9564 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.7712, allocations: 361.3 kB / 0.9567 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.968e-05/0.7712, allocations: 96.55 kB / 0.9568 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.7713, allocations: 0 / 0.9568 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.7714, allocations: 17.69 kB / 0.9568 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/0.7715, allocations: 19.36 kB / 0.9569 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.7715, allocations: 11.58 kB / 0.9569 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.661e-05/0.7716, allocations: 141.9 kB / 0.957 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7716, allocations: 1.156 kB / 0.957 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003288/0.7719, allocations: 27.03 kB / 0.957 GB, free: 2.23 MB / 0.7169 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.0001418/0.7721, allocations: 106.2 kB / 0.9571 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003385/0.7724, allocations: 117.8 kB / 0.9573 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.7724, allocations: 4 kB / 0.9573 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.7726, allocations: 48.78 kB / 0.9573 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005541/0.7731, allocations: 69.06 kB / 0.9574 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005388/0.7737, allocations: 394.7 kB / 0.9577 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.7738, allocations: 0.7283 MB / 0.9585 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.009e-05/0.7739, allocations: 19.8 kB / 0.9585 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.066e-05/0.774, allocations: 17.81 kB / 0.9585 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.774, allocations: 0 / 0.9585 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of Templates: time 0.004762/0.7787, allocations: 1.914 MB / 0.9604 GB, free: 24 kB / 0.7169 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