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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001858/0.001859, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002202/0.002202, allocations: 198.8 kB / 16.14 MB, free: 6.645 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.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.75/2.75, allocations: 461.9 MB / 0.7342 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 64.05 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.327, allocations: 157.4 MB / 1.052 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003404/0.3304, allocations: 1.876 MB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001189/0.3317, allocations: 0.5452 MB / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.3318, allocations: 0 / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001824/0.332, allocations: 19.8 kB / 1.054 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.085e-05/0.3321, allocations: 27.78 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.3324, allocations: 51.95 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.3326, allocations: 163.5 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.3328, allocations: 45.64 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.684e-05/0.3329, allocations: 43.8 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.748e-05/0.333, allocations: 63.58 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.333, allocations: 8 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.526e-05/0.3331, allocations: 8 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.467e-05/0.3331, allocations: 27.84 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.607e-05/0.3332, allocations: 63.59 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.3334, allocations: 119.8 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3334, allocations: 0 / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.021e-06/0.3334, allocations: 0 / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.3334, allocations: 0 / 1.055 GB, free: 5.812 MB / 0.8106 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.0007657/0.3342, allocations: 479.6 kB / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3342, allocations: 15.97 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.745e-05/0.3343, allocations: 20.75 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.3346, allocations: 231.8 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.3346, allocations: 8.375 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.069e-05/0.3347, allocations: 12.38 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.3349, allocations: 149.1 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.335, allocations: 7.938 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.335, allocations: 4 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.335, allocations: 7.984 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.3352, allocations: 67.88 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009564/0.3362, allocations: 0.7354 MB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.3364, allocations: 50.56 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.3365, allocations: 32.83 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.3365, allocations: 0 / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003761/0.3369, allocations: 138.6 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.3369, allocations: 0 / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0005067/0.3374, allocations: 157.3 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.3375, allocations: 136.5 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.3377, allocations: 195.2 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.3377, allocations: 37.7 kB / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.288e-05/0.3378, allocations: 127.8 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.262e-05/0.3379, allocations: 35.69 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.049e-05/0.3379, allocations: 45.7 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3381, allocations: 326.8 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.3382, allocations: 39.97 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.3384, allocations: 152.5 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/0.3387, allocations: 198.4 kB / 1.058 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3387, allocations: 7.938 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000393/0.3391, allocations: 213.4 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3392, allocations: 8 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.3392, allocations: 4 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.3392, allocations: 4 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.3393, allocations: 31.92 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.3394, allocations: 7.938 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.3395, allocations: 31.81 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.3395, allocations: 8 kB / 1.059 GB, free: 1.754 MB / 0.8106 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.0001275/0.3397, allocations: 139.3 kB / 1.059 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.109e-05/0.3397, allocations: 19.81 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.623e-05/0.3398, allocations: 21.39 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3398, allocations: 4 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3398, allocations: 0 / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.3398, allocations: 4 kB / 1.059 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008273/0.3406, allocations: 0.5137 MB / 1.059 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3406, allocations: 0 / 1.059 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.3408, allocations: 20.03 kB / 1.059 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.3408, allocations: 7.984 kB / 1.059 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.3408, allocations: 0 / 1.059 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3408, allocations: 0 / 1.059 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3408, allocations: 11.88 kB / 1.059 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006494/0.3415, allocations: 356.2 kB / 1.06 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/0.3415, allocations: 92.95 kB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/0.3416, allocations: 4 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.3417, allocations: 19.98 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.552e-05/0.3418, allocations: 15.86 kB / 1.06 GB, free: 444 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.3418, allocations: 4 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001103/0.3419, allocations: 140.6 kB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3419, allocations: 4 kB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003295/0.3423, allocations: 24 kB / 1.06 GB, free: 272 kB / 0.8106 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.0001469/0.3424, allocations: 110.2 kB / 1.06 GB, free: 156 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003263/0.3428, allocations: 115.8 kB / 1.06 GB, free: 40 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3428, allocations: 0 / 1.06 GB, free: 40 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.343, allocations: 53.11 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005583/0.3436, allocations: 62.53 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006168/0.3442, allocations: 390.1 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.3445, allocations: 0.7245 MB / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.27e-05/0.3446, allocations: 13.55 kB / 1.061 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/0.3446, allocations: 19.44 kB / 1.061 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of SimCode: time 2.91e-07/0.3446, allocations: 0 / 1.061 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of Templates: time 0.006022/0.3507, allocations: 1.819 MB / 1.063 GB, free: 12.93 MB / 0.8262 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