Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.0009499/0.0009499, allocations: 92.78 kB / 16.02 MB, free: 80 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.001375/0.001375, allocations: 181.6 kB / 16.92 MB, free: 6.652 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.532/1.532, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.41/2.41, allocations: 390.9 MB / 0.667 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003732/0.0003734, allocations: 8 kB / 0.8166 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7401/0.7404, allocations: 142.4 MB / 0.9557 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00186/0.7424, allocations: 1.518 MB / 0.9572 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007721/0.7431, allocations: 0.5226 MB / 0.9577 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.7433, allocations: 6.344 kB / 0.9577 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.7434, allocations: 17.2 kB / 0.9577 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.265e-05/0.7435, allocations: 25.94 kB / 0.9577 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.7437, allocations: 57.55 kB / 0.9578 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.7439, allocations: 170.3 kB / 0.958 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.744, allocations: 49.36 kB / 0.958 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.808e-05/0.7441, allocations: 44.77 kB / 0.958 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.882e-05/0.7442, allocations: 51.95 kB / 0.9581 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.7442, allocations: 4.656 kB / 0.9581 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.599e-05/0.7443, allocations: 3.5 kB / 0.9581 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.721e-05/0.7443, allocations: 21.47 kB / 0.9581 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.218e-05/0.7444, allocations: 79.84 kB / 0.9582 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.7445, allocations: 91.23 kB / 0.9583 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.7445, allocations: 3.938 kB / 0.9583 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.136e-06/0.7445, allocations: 1.812 kB / 0.9583 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.7445, allocations: 4 kB / 0.9583 GB, free: 5.609 MB / 0.7169 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.0006005/0.7451, allocations: 445.7 kB / 0.9587 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.7452, allocations: 9.062 kB / 0.9587 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.752e-05/0.7452, allocations: 22.42 kB / 0.9588 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.7455, allocations: 237 kB / 0.959 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.7455, allocations: 5.125 kB / 0.959 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.224e-05/0.7456, allocations: 12.34 kB / 0.959 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003635/0.7459, allocations: 161.2 kB / 0.9591 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.7459, allocations: 4 kB / 0.9592 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.746, allocations: 9.906 kB / 0.9592 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.746, allocations: 2.344 kB / 0.9592 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002764/0.7463, allocations: 79.66 kB / 0.9592 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008975/0.7472, allocations: 0.7493 MB / 0.96 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.7474, allocations: 54.45 kB / 0.96 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.7475, allocations: 41.17 kB / 0.9601 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.7475, allocations: 1.969 kB / 0.9601 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003303/0.7479, allocations: 133.4 kB / 0.9602 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.7479, allocations: 0 / 0.9602 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0005326/0.7484, allocations: 183.9 kB / 0.9604 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.7485, allocations: 129.9 kB / 0.9605 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.7486, allocations: 212.4 kB / 0.9607 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.7487, allocations: 27.08 kB / 0.9607 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.731e-05/0.7487, allocations: 132.1 kB / 0.9608 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.608e-05/0.7488, allocations: 29.19 kB / 0.9609 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.358e-05/0.7488, allocations: 28.58 kB / 0.9609 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.752e-05/0.7489, allocations: 334.9 kB / 0.9612 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.749, allocations: 43.47 kB / 0.9613 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.7491, allocations: 152.8 kB / 0.9614 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.7494, allocations: 218.9 kB / 0.9616 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.7494, allocations: 1.375 kB / 0.9616 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003921/0.7498, allocations: 220.7 kB / 0.9618 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.7499, allocations: 5.5 kB / 0.9618 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.7499, allocations: 4.125 kB / 0.9618 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.7499, allocations: 5.5 kB / 0.9618 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.75, allocations: 34.05 kB / 0.9619 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.7501, allocations: 13.42 kB / 0.9619 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.7502, allocations: 33.08 kB / 0.9619 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.7502, allocations: 12.12 kB / 0.9619 GB, free: 2.32 MB / 0.7169 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 8.834e-05/0.7503, allocations: 138.8 kB / 0.9621 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.7503, allocations: 16.59 kB / 0.9621 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.228e-05/0.7504, allocations: 23.14 kB / 0.9621 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.7504, allocations: 2.438 kB / 0.9621 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.7504, allocations: 1.156 kB / 0.9621 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.7504, allocations: 0.9688 kB / 0.9621 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006609/0.7511, allocations: 0.5277 MB / 0.9626 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.7511, allocations: 0.9375 kB / 0.9626 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.7512, allocations: 26.33 kB / 0.9626 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.7512, allocations: 1.969 kB / 0.9626 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.7513, allocations: 2.281 kB / 0.9626 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.7513, allocations: 1 kB / 0.9627 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/0.7513, allocations: 9.922 kB / 0.9627 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004653/0.7517, allocations: 376.2 kB / 0.963 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.7518, allocations: 97.09 kB / 0.9631 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.7518, allocations: 11 kB / 0.9631 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.752, allocations: 19.45 kB / 0.9631 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/0.7521, allocations: 13.89 kB / 0.9632 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.7521, allocations: 8.109 kB / 0.9632 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.686e-05/0.7522, allocations: 145.5 kB / 0.9633 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7522, allocations: 0 / 0.9633 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003299/0.7525, allocations: 30.91 kB / 0.9633 GB, free: 1.105 MB / 0.7169 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.0001229/0.7526, allocations: 107.2 kB / 0.9634 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003282/0.753, allocations: 122.3 kB / 0.9635 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.753, allocations: 0 / 0.9635 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000157/0.7532, allocations: 55.94 kB / 0.9636 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006003/0.7538, allocations: 69.16 kB / 0.9637 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005864/0.7544, allocations: 434 kB / 0.9641 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.7546, allocations: 0.7251 MB / 0.9648 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.87e-05/0.7546, allocations: 17.69 kB / 0.9648 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/0.7547, allocations: 4 kB / 0.9648 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of Templates: time 0.004165/0.7588, allocations: 2.091 MB / 0.9669 GB, free: 14.75 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches