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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.405/2.405, allocations: 390.3 MB / 402.8 MB, free: 6.695 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 188.8 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 221.3 MB / 0.7915 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009213/0.0009214, allocations: 91.98 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.37e-05/4.385e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3223, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.034/1.356, allocations: 151.9 MB / 1.367 GB, free: 2.094 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/1.357, allocations: 76.89 kB / 1.367 GB, free: 2.055 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01395/1.371, allocations: 3.529 MB / 1.371 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.787e-06/1.371, allocations: 0 / 1.371 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.339e-05/1.371, allocations: 9.969 kB / 1.371 GB, free: 15.04 MB / 0.8386 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.0008531/1.372, allocations: 437 kB / 1.371 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/1.372, allocations: 8.031 kB / 1.371 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/1.372, allocations: 19.81 kB / 1.371 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004114/1.372, allocations: 233.5 kB / 1.371 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/1.372, allocations: 7.25 kB / 1.371 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/1.372, allocations: 11.44 kB / 1.371 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003088/1.373, allocations: 134.9 kB / 1.371 GB, free: 14.15 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/1.373, allocations: 4 kB / 1.371 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/1.373, allocations: 3.375 kB / 1.371 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/1.373, allocations: 4 kB / 1.371 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001619/1.373, allocations: 49.77 kB / 1.372 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/1.374, allocations: 0.7535 MB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/1.374, allocations: 41.81 kB / 1.372 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.648e-05/1.375, allocations: 20.17 kB / 1.372 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/1.375, allocations: 0 / 1.372 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002539/1.375, allocations: 125.1 kB / 1.372 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 2.054e-06/1.375, allocations: 0 / 1.372 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.00035/1.375, allocations: 104.2 kB / 1.373 GB, free: 13.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.574e-05/1.375, allocations: 139.7 kB / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/1.376, allocations: 171.4 kB / 1.373 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/1.376, allocations: 33.39 kB / 1.373 GB, free: 12.69 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/1.376, allocations: 133.2 kB / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.51e-05/1.376, allocations: 31.44 kB / 1.373 GB, free: 12.55 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.147e-06/1.376, allocations: 3.875 kB / 1.373 GB, free: 12.55 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001508/1.376, allocations: 330 kB / 1.373 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.422e-05/1.376, allocations: 27.25 kB / 1.373 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/1.376, allocations: 127.5 kB / 1.373 GB, free: 12.04 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/1.376, allocations: 49.98 kB / 1.374 GB, free: 12 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/1.376, allocations: 0 / 1.374 GB, free: 12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004224/1.377, allocations: 185.2 kB / 1.374 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/1.377, allocations: 4 kB / 1.374 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/1.377, allocations: 11.97 kB / 1.374 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/1.377, allocations: 8 kB / 1.374 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/1.377, allocations: 31.92 kB / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/1.377, allocations: 7.984 kB / 1.374 GB, free: 11.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/1.377, allocations: 27.81 kB / 1.374 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/1.377, allocations: 15.94 kB / 1.374 GB, free: 11.74 MB / 0.8386 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 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000118/1.378, allocations: 125.9 kB / 1.374 GB, free: 11.62 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.553e-05/1.378, allocations: 15.81 kB / 1.374 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.066e-05/1.378, allocations: 19.95 kB / 1.374 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/1.378, allocations: 7.938 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/1.378, allocations: 0 / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/1.378, allocations: 4 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009055/1.379, allocations: 0.4958 MB / 1.374 GB, free: 11.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/1.379, allocations: 4 kB / 1.374 GB, free: 11.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/1.379, allocations: 23.3 kB / 1.374 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/1.379, allocations: 0 / 1.374 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/1.379, allocations: 4 kB / 1.374 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.199e-06/1.379, allocations: 3.953 kB / 1.374 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.379, allocations: 3.938 kB / 1.374 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004749/1.379, allocations: 359.1 kB / 1.375 GB, free: 10.68 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.332e-05/1.38, allocations: 100.9 kB / 1.375 GB, free: 10.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/1.38, allocations: 0 / 1.375 GB, free: 10.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/1.38, allocations: 22.86 kB / 1.375 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.006e-05/1.38, allocations: 19.23 kB / 1.375 GB, free: 10.53 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/1.38, allocations: 4 kB / 1.375 GB, free: 10.52 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001632/1.38, allocations: 141.3 kB / 1.375 GB, free: 10.4 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.7e-07/1.38, allocations: 0 / 1.375 GB, free: 10.4 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005662/1.381, allocations: 27.06 kB / 1.375 GB, free: 10.38 MB / 0.8386 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,intWitRes1.trigger,$whenCondition2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001875/1.381, allocations: 106.4 kB / 1.375 GB, free: 10.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002635/1.381, allocations: 86.67 kB / 1.375 GB, free: 10.2 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.381, allocations: 3.938 kB / 1.375 GB, free: 10.2 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001243/1.381, allocations: 35.56 kB / 1.375 GB, free: 10.17 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006538/1.382, allocations: 65.17 kB / 1.375 GB, free: 10.12 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006297/1.383, allocations: 249.6 kB / 1.376 GB, free: 9.863 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/1.383, allocations: 0.7323 MB / 1.376 GB, free: 9.105 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001352/1.383, allocations: 25.98 kB / 1.376 GB, free: 9.078 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/1.383, allocations: 19.38 kB / 1.376 GB, free: 9.062 MB / 0.8386 GB Notification: Performance of SimCode: time 5.01e-07/1.383, allocations: 0 / 1.376 GB, free: 9.062 MB / 0.8386 GB Notification: Performance of Templates: time 0.006484/1.39, allocations: 1.756 MB / 1.378 GB, free: 7.34 MB / 0.8386 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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches