Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 108 kB / 15.61 MB, free: 148 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.002174/0.002175, allocations: 195 kB / 16.53 MB, free: 6.699 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.524/1.524, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.876/2.876, allocations: 437 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 63.91 kB / 0.8692 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.655/0.657, allocations: 151.6 MB / 1.017 GB, free: 2.566 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002592/0.6597, allocations: 0.8776 MB / 1.018 GB, free: 1.684 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001717/0.6614, allocations: 1.183 MB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.47e-05/0.6615, allocations: 0 / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.251e-05/0.6616, allocations: 7.875 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.67e-05/0.6617, allocations: 19.84 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005223/0.6622, allocations: 143.2 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002241/0.6624, allocations: 175.6 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.6626, allocations: 45.02 kB / 1.02 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.6627, allocations: 63.77 kB / 1.02 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.6629, allocations: 63.83 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.563e-05/0.6629, allocations: 16 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.003e-05/0.663, allocations: 27.98 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.557e-05/0.663, allocations: 27.83 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.389e-05/0.6631, allocations: 71.7 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.6634, allocations: 165.5 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.6634, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.392e-06/0.6634, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.6634, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007417/0.6641, allocations: 460.7 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.6642, allocations: 8.031 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.865e-05/0.6643, allocations: 12.84 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005825/0.6648, allocations: 256.2 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.6649, allocations: 8.375 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/0.6649, allocations: 20.28 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002336/0.6652, allocations: 88.53 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.6652, allocations: 3.938 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.6652, allocations: 8 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.6652, allocations: 4 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000189/0.6654, allocations: 47.95 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007354/0.6662, allocations: 392.4 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.6663, allocations: 38.55 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.755e-05/0.6664, allocations: 24.97 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.6664, allocations: 3.938 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002633/0.6667, allocations: 99.2 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.6667, allocations: 8 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004526/0.6672, allocations: 129.5 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.6672, allocations: 63.34 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.6674, allocations: 135.4 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.6674, allocations: 33.7 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.781e-05/0.6675, allocations: 103.9 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.6676, allocations: 27.78 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.804e-05/0.6677, allocations: 57.59 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.6678, allocations: 318.8 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.668, allocations: 51.95 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.6682, allocations: 131.1 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.6686, allocations: 216.6 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.6686, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005128/0.6691, allocations: 235 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/0.6692, allocations: 34.08 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.6692, allocations: 8 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.6692, allocations: 4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.6693, allocations: 27.92 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.6694, allocations: 7.922 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002382/0.6696, allocations: 43.81 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.436e-05/0.6696, allocations: 11.98 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001259/0.6698, allocations: 133.8 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.333e-05/0.6698, allocations: 7.906 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.383e-05/0.6698, allocations: 12.66 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.6698, allocations: 4 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.6699, allocations: 3.938 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.6699, allocations: 3.984 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006016/0.6705, allocations: 386.8 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.6705, allocations: 4 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.801e-05/0.6706, allocations: 20.02 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.6706, allocations: 7.875 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.6706, allocations: 4 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.6706, allocations: 0 / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.6706, allocations: 3.984 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/0.6711, allocations: 243.2 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.326e-05/0.6712, allocations: 88.95 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.6712, allocations: 4 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.573e-05/0.6713, allocations: 8.031 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.881e-05/0.6714, allocations: 7.984 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.6714, allocations: 8 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.091e-05/0.6715, allocations: 108.8 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6715, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002987/0.6718, allocations: 31.94 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0001827/0.672, allocations: 115.2 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004322/0.6724, allocations: 183.1 kB / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.6724, allocations: 0.75 kB / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.6726, allocations: 43.91 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003072/0.6729, allocations: 23.86 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006311/0.6735, allocations: 265.3 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.6739, allocations: 0.7006 MB / 1.025 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.542e-05/0.674, allocations: 20.58 kB / 1.025 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.307e-05/0.674, allocations: 19.44 kB / 1.025 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.674, allocations: 0 / 1.025 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of Templates: time 0.005287/0.6793, allocations: 1.633 MB / 1.027 GB, free: 8.082 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches