Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001636/0.001636, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001549/0.001549, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.486/1.486, allocations: 222.9 MB / 240.6 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.912/2.912, allocations: 469.8 MB / 0.7427 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002094/0.002095, allocations: 72.67 kB / 0.9087 GB, free: 34.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3247, allocations: 159.2 MB / 1.064 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003703/0.3285, allocations: 1.874 MB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.3298, allocations: 0.5338 MB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002067/0.3301, allocations: 3.938 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002179/0.3303, allocations: 19.86 kB / 1.067 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001243/0.3305, allocations: 23.78 kB / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003134/0.3308, allocations: 59.94 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003392/0.3312, allocations: 167.5 kB / 1.067 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.3314, allocations: 49.64 kB / 1.067 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.3315, allocations: 59.67 kB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.3317, allocations: 55.69 kB / 1.067 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.706e-05/0.3317, allocations: 12 kB / 1.067 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.607e-05/0.3317, allocations: 8 kB / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.158e-05/0.3318, allocations: 31.86 kB / 1.067 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.3319, allocations: 71.59 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002074/0.3321, allocations: 88.08 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3321, allocations: 0 / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.926e-06/0.3321, allocations: 0 / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.366e-06/0.3322, allocations: 0 / 1.067 GB, free: 11.54 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.0009942/0.3332, allocations: 471.9 kB / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.3332, allocations: 12.03 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.94e-05/0.3333, allocations: 16.75 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.3337, allocations: 235.8 kB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.3337, allocations: 12.38 kB / 1.068 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.3338, allocations: 12.38 kB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003601/0.3342, allocations: 150.2 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.3342, allocations: 4 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.3342, allocations: 4 kB / 1.068 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.3342, allocations: 4 kB / 1.068 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.3345, allocations: 71.88 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.3357, allocations: 0.7392 MB / 1.069 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.3359, allocations: 46.55 kB / 1.069 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.3361, allocations: 36.83 kB / 1.069 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.3361, allocations: 7.875 kB / 1.069 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/0.3364, allocations: 130.7 kB / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.3364, allocations: 0 / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0005537/0.337, allocations: 165.3 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.3371, allocations: 132.8 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.3374, allocations: 196.2 kB / 1.069 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.3374, allocations: 29.7 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.3375, allocations: 127.8 kB / 1.07 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.557e-05/0.3376, allocations: 39.69 kB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.058e-05/0.3377, allocations: 41.7 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3378, allocations: 326.8 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.338, allocations: 39.97 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002455/0.3382, allocations: 157.5 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.3386, allocations: 202.3 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.3386, allocations: 0 / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004431/0.3391, allocations: 205.4 kB / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.3391, allocations: 8 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.3391, allocations: 4 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3391, allocations: 4 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.3393, allocations: 31.92 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.3393, allocations: 7.938 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/0.3394, allocations: 32.06 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.3395, allocations: 16 kB / 1.071 GB, free: 7.492 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.0001488/0.3396, allocations: 136.4 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.203e-05/0.3397, allocations: 15.81 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.307e-05/0.3397, allocations: 21.39 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.3397, allocations: 4 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3397, allocations: 0 / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.3398, allocations: 4 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008525/0.3406, allocations: 0.5209 MB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3406, allocations: 320 / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.3408, allocations: 19.98 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.391e-06/0.3408, allocations: 4 kB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.3408, allocations: 4 kB / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.3408, allocations: 7.938 kB / 1.071 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3408, allocations: 3.938 kB / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005389/0.3414, allocations: 348.3 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.033e-05/0.3414, allocations: 93.33 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.3415, allocations: 12 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.3417, allocations: 11.98 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.3417, allocations: 19.86 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.3417, allocations: 4 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001399/0.3419, allocations: 147.3 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.234e-06/0.3419, allocations: 0 / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003426/0.3422, allocations: 31.84 kB / 1.072 GB, free: 5.996 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.0001498/0.3424, allocations: 120.8 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000359/0.3428, allocations: 123.8 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3428, allocations: 1 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.3429, allocations: 52.03 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006003/0.3435, allocations: 64.75 kB / 1.072 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007415/0.3443, allocations: 406.3 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.3447, allocations: 0.7242 MB / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.549e-05/0.3448, allocations: 19.44 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3448, allocations: 0 / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of Templates: time 0.004914/0.3497, allocations: 2.135 MB / 1.076 GB, free: 2.301 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches