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.008156/0.008156, allocations: 96.73 kB / 15.73 MB, free: 6.047 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.001752/0.001752, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.843/2.843, allocations: 469.8 MB / 0.7425 GB, free: 7.348 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 76.09 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3566, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003067/0.3597, allocations: 1.807 MB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.3607, allocations: 0.5533 MB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.3608, allocations: 7.938 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.361, allocations: 23.72 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.718e-05/0.3611, allocations: 27.73 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.3613, allocations: 63.86 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.3615, allocations: 171.5 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.3617, allocations: 45.58 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.019e-05/0.3617, allocations: 55.72 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.71e-05/0.3618, allocations: 59.64 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.3618, allocations: 12 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.684e-05/0.3619, allocations: 8 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.505e-05/0.3619, allocations: 31.86 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.247e-05/0.362, allocations: 63.59 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.3621, allocations: 131.3 kB / 1.224 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3621, allocations: 0 / 1.224 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3621, allocations: 4 kB / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.3621, allocations: 0 / 1.224 GB, free: 10.73 MB / 0.9825 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.0007592/0.3629, allocations: 483.9 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3629, allocations: 8.031 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.363, allocations: 24.83 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.3633, allocations: 244.5 kB / 1.224 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.3633, allocations: 12.36 kB / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.79e-05/0.3633, allocations: 20.33 kB / 1.224 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.3636, allocations: 152 kB / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3636, allocations: 0 / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.3637, allocations: 0 / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.3637, allocations: 8 kB / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002184/0.3639, allocations: 75.88 kB / 1.225 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008982/0.3648, allocations: 0.7278 MB / 1.225 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001454/0.3649, allocations: 50.5 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.365, allocations: 28.98 kB / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.3651, allocations: 11.92 kB / 1.225 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.3653, allocations: 130.7 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.3653, allocations: 0 / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0004762/0.3658, allocations: 169.6 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.768e-05/0.3658, allocations: 132.5 kB / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.366, allocations: 199 kB / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.3661, allocations: 33.7 kB / 1.226 GB, free: 8 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.799e-05/0.3661, allocations: 127.9 kB / 1.226 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.973e-05/0.3662, allocations: 27.8 kB / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.788e-05/0.3662, allocations: 49.66 kB / 1.226 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.3664, allocations: 330.8 kB / 1.227 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.3665, allocations: 35.97 kB / 1.227 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.3666, allocations: 147.6 kB / 1.227 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.3669, allocations: 198.4 kB / 1.227 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.3669, allocations: 7.938 kB / 1.227 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003867/0.3673, allocations: 205.2 kB / 1.227 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3674, allocations: 10.12 kB / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3674, allocations: 4 kB / 1.227 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3674, allocations: 8 kB / 1.227 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.3675, allocations: 31.92 kB / 1.227 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.3675, allocations: 12.42 kB / 1.227 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.3677, allocations: 35.86 kB / 1.227 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.3677, allocations: 8 kB / 1.227 GB, free: 6.66 MB / 0.9825 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.0001074/0.3678, allocations: 141.7 kB / 1.227 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.3678, allocations: 19.86 kB / 1.227 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.3679, allocations: 21.39 kB / 1.227 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.738e-06/0.3679, allocations: 8.172 kB / 1.227 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3679, allocations: 0 / 1.227 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.3679, allocations: 3.984 kB / 1.227 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007178/0.3686, allocations: 0.5133 MB / 1.228 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.3686, allocations: 0 / 1.228 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.3687, allocations: 16.3 kB / 1.228 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3687, allocations: 0 / 1.228 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.3687, allocations: 8 kB / 1.228 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3687, allocations: 7.938 kB / 1.228 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3687, allocations: 7.938 kB / 1.228 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005032/0.3692, allocations: 356.3 kB / 1.228 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.3693, allocations: 97.05 kB / 1.228 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.3693, allocations: 7.938 kB / 1.228 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.3695, allocations: 11.98 kB / 1.228 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.3695, allocations: 15.92 kB / 1.228 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.3696, allocations: 11.94 kB / 1.228 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001095/0.3697, allocations: 140.4 kB / 1.229 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3697, allocations: 0 / 1.229 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003348/0.37, allocations: 31.95 kB / 1.229 GB, free: 5.145 MB / 0.9825 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.0001258/0.3701, allocations: 111.2 kB / 1.229 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003216/0.3705, allocations: 104.6 kB / 1.229 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3705, allocations: 4 kB / 1.229 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.3706, allocations: 48.03 kB / 1.229 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005694/0.3712, allocations: 67.67 kB / 1.229 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006109/0.3718, allocations: 363.7 kB / 1.229 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.3721, allocations: 0.7243 MB / 1.23 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.274e-05/0.3721, allocations: 22 kB / 1.23 GB, free: 3.645 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.809e-05/0.3722, allocations: 15.44 kB / 1.23 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of SimCode: time 5.11e-07/0.3722, allocations: 4 kB / 1.23 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of Templates: time 0.006081/0.3783, allocations: 2.036 MB / 1.232 GB, free: 1.617 MB / 0.9825 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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches