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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001203/0.001203, allocations: 103.3 kB / 16.36 MB, free: 5.824 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.001124/0.001124, allocations: 193.3 kB / 17.3 MB, free: 5.48 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.195/1.195, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.209/2.209, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 67.89 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2527, allocations: 153 MB / 1.027 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002826/0.2555, allocations: 1.824 MB / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008459/0.2564, allocations: 0.5492 MB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.971e-05/0.2565, allocations: 4 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.2566, allocations: 19.73 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.47e-05/0.2567, allocations: 27.73 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.2569, allocations: 71.84 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002063/0.2571, allocations: 171.5 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.2573, allocations: 45.66 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.311e-05/0.2573, allocations: 59.7 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.8e-05/0.2574, allocations: 55.7 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.2574, allocations: 16 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.534e-05/0.2575, allocations: 8 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.104e-05/0.2575, allocations: 27.86 kB / 1.03 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.415e-05/0.2576, allocations: 67.53 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.2577, allocations: 135.5 kB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2577, allocations: 0 / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.313e-06/0.2578, allocations: 0 / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.335e-06/0.2578, allocations: 0 / 1.03 GB, free: 14.99 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.0006471/0.2584, allocations: 478.7 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.839e-05/0.2585, allocations: 8.031 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.529e-05/0.2585, allocations: 24.75 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.2588, allocations: 228.7 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.2588, allocations: 12.38 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/0.2588, allocations: 16.36 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002649/0.2591, allocations: 151.6 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2591, allocations: 0 / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.2591, allocations: 7.938 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.2591, allocations: 4 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.2593, allocations: 71.86 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008571/0.2602, allocations: 0.7315 MB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.2603, allocations: 58.48 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.535e-05/0.2604, allocations: 32.83 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.2605, allocations: 0 / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002093/0.2607, allocations: 130.6 kB / 1.032 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.2607, allocations: 0 / 1.032 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004252/0.2611, allocations: 161.3 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.2612, allocations: 132.5 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.2614, allocations: 199 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.2614, allocations: 29.95 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.884e-05/0.2615, allocations: 139.9 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.2615, allocations: 35.48 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.278e-05/0.2616, allocations: 37.72 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.2617, allocations: 330.8 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.2618, allocations: 39.91 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.262, allocations: 151.7 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.2623, allocations: 206.3 kB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2623, allocations: 0 / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003524/0.2627, allocations: 197.5 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2627, allocations: 12 kB / 1.033 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2627, allocations: 4 kB / 1.033 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.2627, allocations: 4 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.2628, allocations: 39.91 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.2629, allocations: 7.938 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.263, allocations: 31.77 kB / 1.033 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.263, allocations: 12 kB / 1.033 GB, free: 10.93 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.0001106/0.2631, allocations: 138.7 kB / 1.033 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.426e-05/0.2632, allocations: 19.8 kB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.025e-05/0.2632, allocations: 21.41 kB / 1.033 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2632, allocations: 0 / 1.033 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2632, allocations: 0 / 1.033 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2633, allocations: 7.984 kB / 1.033 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008824/0.2641, allocations: 0.5173 MB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2642, allocations: 0 / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.2643, allocations: 23.92 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.2643, allocations: 4 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.2643, allocations: 3.984 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.2644, allocations: 4 kB / 1.034 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2644, allocations: 4.219 kB / 1.034 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004574/0.2648, allocations: 360.2 kB / 1.034 GB, free: 9.754 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.368e-05/0.2649, allocations: 92.92 kB / 1.034 GB, free: 9.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.2649, allocations: 4 kB / 1.034 GB, free: 9.641 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.2651, allocations: 12.03 kB / 1.034 GB, free: 9.629 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.24e-05/0.2651, allocations: 23.91 kB / 1.034 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-06/0.2652, allocations: 4 kB / 1.034 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001008/0.2653, allocations: 143.2 kB / 1.035 GB, free: 9.461 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2653, allocations: 0 / 1.035 GB, free: 9.461 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003065/0.2656, allocations: 24 kB / 1.035 GB, free: 9.438 MB / 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.000139/0.2657, allocations: 103.2 kB / 1.035 GB, free: 9.324 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003006/0.266, allocations: 115.8 kB / 1.035 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.266, allocations: 4 kB / 1.035 GB, free: 9.207 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.2662, allocations: 47.91 kB / 1.035 GB, free: 9.16 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005068/0.2667, allocations: 73.2 kB / 1.035 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000515/0.2672, allocations: 352.6 kB / 1.035 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.2675, allocations: 0.7242 MB / 1.036 GB, free: 7.965 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.717e-05/0.2676, allocations: 17.67 kB / 1.036 GB, free: 7.949 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.68e-05/0.2676, allocations: 19.44 kB / 1.036 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.2676, allocations: 0 / 1.036 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of Templates: time 0.004269/0.2719, allocations: 2.026 MB / 1.038 GB, free: 5.938 MB / 0.8106 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches