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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001543/0.001543, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.478/1.478, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.871/2.871, allocations: 472.7 MB / 0.7452 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 75.64 kB / 0.9121 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.333, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002941/0.3359, allocations: 1.813 MB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009365/0.3369, allocations: 0.5415 MB / 1.071 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.877e-05/0.337, allocations: 3.938 kB / 1.071 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.3371, allocations: 27.73 kB / 1.071 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.946e-05/0.3372, allocations: 31.72 kB / 1.071 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002029/0.3374, allocations: 71.84 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.3376, allocations: 163.5 kB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.3378, allocations: 45.66 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.02e-05/0.3379, allocations: 55.72 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.965e-05/0.338, allocations: 63.62 kB / 1.071 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.456e-05/0.338, allocations: 12 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.379e-05/0.338, allocations: 12 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.293e-05/0.3381, allocations: 27.86 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.813e-05/0.3381, allocations: 63.61 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.3383, allocations: 123.7 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3383, allocations: 0 / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3383, allocations: 0 / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.3383, allocations: 0 / 1.071 GB, free: 7.367 MB / 0.8262 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.0006778/0.339, allocations: 482.7 kB / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.339, allocations: 8.031 kB / 1.072 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.921e-05/0.3391, allocations: 20.75 kB / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.3393, allocations: 236.4 kB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.3393, allocations: 8.375 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.2e-05/0.3394, allocations: 16.36 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.3397, allocations: 158.2 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.3397, allocations: 0 / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.3397, allocations: 0 / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3397, allocations: 4 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002346/0.34, allocations: 75.88 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000853/0.3408, allocations: 0.7353 MB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.341, allocations: 50.48 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.3411, allocations: 32.83 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.3411, allocations: 4 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.3414, allocations: 122.7 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.3414, allocations: 0 / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004779/0.3419, allocations: 169.4 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.342, allocations: 132.8 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.3421, allocations: 210.6 kB / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.3422, allocations: 33.69 kB / 1.074 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.922e-05/0.3423, allocations: 123.9 kB / 1.074 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.3423, allocations: 43.69 kB / 1.074 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.549e-05/0.3424, allocations: 45.55 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.3425, allocations: 326.8 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.3426, allocations: 39.97 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.3428, allocations: 145.2 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003141/0.3431, allocations: 210.3 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3431, allocations: 0 / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003868/0.3435, allocations: 209.4 kB / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.3435, allocations: 4 kB / 1.075 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.3436, allocations: 4 kB / 1.075 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.3436, allocations: 4 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.3437, allocations: 35.91 kB / 1.075 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.3437, allocations: 8 kB / 1.075 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.3439, allocations: 27.83 kB / 1.075 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.3439, allocations: 8.188 kB / 1.075 GB, free: 3.305 MB / 0.8262 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.00011/0.344, allocations: 142.1 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.19e-05/0.3441, allocations: 23.8 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.361e-05/0.3441, allocations: 17.41 kB / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3441, allocations: 0 / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3441, allocations: 4 kB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3441, allocations: 3.984 kB / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007557/0.3449, allocations: 0.5131 MB / 1.075 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/0.3449, allocations: 4.312 kB / 1.075 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.345, allocations: 23.92 kB / 1.075 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.345, allocations: 3.984 kB / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.3451, allocations: 4 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3451, allocations: 0 / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3451, allocations: 3.938 kB / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004796/0.3456, allocations: 364.2 kB / 1.076 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.421e-05/0.3456, allocations: 88.92 kB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.3457, allocations: 0 / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.3458, allocations: 20.03 kB / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.3459, allocations: 19.91 kB / 1.076 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.3459, allocations: 8 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001043/0.346, allocations: 136.6 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.346, allocations: 0 / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003363/0.3464, allocations: 31.91 kB / 1.076 GB, free: 1.809 MB / 0.8262 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.0001297/0.3465, allocations: 119.1 kB / 1.076 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003416/0.3468, allocations: 115.8 kB / 1.076 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3469, allocations: 0 / 1.076 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.347, allocations: 48.91 kB / 1.076 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005585/0.3476, allocations: 73.34 kB / 1.076 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005837/0.3482, allocations: 348.5 kB / 1.077 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.3485, allocations: 0.7242 MB / 1.078 GB, free: 340 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.163e-05/0.3485, allocations: 21.67 kB / 1.078 GB, free: 320 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.982e-05/0.3486, allocations: 23.31 kB / 1.078 GB, free: 296 kB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.3486, allocations: 0 / 1.078 GB, free: 296 kB / 0.8262 GB Notification: Performance of Templates: time 0.004653/0.3532, allocations: 2.011 MB / 1.08 GB, free: 14.3 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) 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) Reference file matches