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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001225/0.001226, allocations: 108.3 kB / 15.99 MB, free: 5.895 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.001264/0.001264, allocations: 193.4 kB / 16.91 MB, free: 5.746 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.352/1.352, allocations: 222.9 MB / 240.6 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.334/2.334, allocations: 390.2 MB / 0.665 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001542, allocations: 67.89 kB / 0.8127 GB, free: 14.74 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6392/0.6407, allocations: 140.3 MB / 0.9498 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00258/0.6434, allocations: 1.87 MB / 0.9516 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007539/0.6441, allocations: 0.5327 MB / 0.9521 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.482e-05/0.6442, allocations: 6.688 kB / 0.9521 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.6444, allocations: 17.45 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.432e-05/0.6444, allocations: 18.55 kB / 0.9522 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001793/0.6446, allocations: 61.53 kB / 0.9522 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001987/0.6448, allocations: 171.5 kB / 0.9524 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.645, allocations: 57.86 kB / 0.9524 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.192e-05/0.6451, allocations: 51.7 kB / 0.9525 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.464e-05/0.6451, allocations: 61.11 kB / 0.9525 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.6452, allocations: 10.69 kB / 0.9525 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.033e-05/0.6452, allocations: 9.531 kB / 0.9526 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.826e-05/0.6452, allocations: 24.67 kB / 0.9526 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.709e-05/0.6453, allocations: 75.3 kB / 0.9527 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.6454, allocations: 90.05 kB / 0.9527 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.6454, allocations: 8 kB / 0.9527 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.273e-06/0.6454, allocations: 0 / 0.9527 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.6454, allocations: 1.562 kB / 0.9527 GB, free: 6.816 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.0005997/0.646, allocations: 469.3 kB / 0.9532 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.6461, allocations: 8.625 kB / 0.9532 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.847e-05/0.6461, allocations: 23.34 kB / 0.9532 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.6463, allocations: 223.2 kB / 0.9534 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.6464, allocations: 14.19 kB / 0.9535 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/0.6464, allocations: 11.53 kB / 0.9535 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002639/0.6467, allocations: 150.1 kB / 0.9536 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.6467, allocations: 1 kB / 0.9536 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.6467, allocations: 5 kB / 0.9536 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.6467, allocations: 6.875 kB / 0.9536 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002106/0.6469, allocations: 75.27 kB / 0.9537 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007754/0.6477, allocations: 0.742 MB / 0.9544 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.6479, allocations: 52.98 kB / 0.9545 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.579e-05/0.648, allocations: 32.88 kB / 0.9545 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.648, allocations: 5 kB / 0.9545 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.6483, allocations: 122.2 kB / 0.9546 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.6483, allocations: 0 / 0.9546 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004333/0.6487, allocations: 171.6 kB / 0.9548 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.6488, allocations: 130.7 kB / 0.9549 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.6489, allocations: 208.3 kB / 0.9551 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.6489, allocations: 31.3 kB / 0.9551 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.649, allocations: 132 kB / 0.9553 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.488e-05/0.649, allocations: 32.52 kB / 0.9553 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.6491, allocations: 40.39 kB / 0.9553 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.406e-05/0.6491, allocations: 335.7 kB / 0.9557 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.6493, allocations: 33.23 kB / 0.9557 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.6494, allocations: 150.6 kB / 0.9558 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002479/0.6497, allocations: 204.6 kB / 0.956 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.6497, allocations: 1.281 kB / 0.956 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003725/0.6501, allocations: 206.8 kB / 0.9562 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.6501, allocations: 6.094 kB / 0.9562 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.6501, allocations: 4.062 kB / 0.9562 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.6501, allocations: 6.156 kB / 0.9562 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.6503, allocations: 31.95 kB / 0.9563 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.6503, allocations: 16.2 kB / 0.9563 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.6504, allocations: 32.98 kB / 0.9563 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.6504, allocations: 7.844 kB / 0.9563 GB, free: 3.52 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.986e-05/0.6505, allocations: 141.1 kB / 0.9565 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.6506, allocations: 16.5 kB / 0.9565 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.392e-05/0.6506, allocations: 22.42 kB / 0.9565 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.6506, allocations: 2.25 kB / 0.9565 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.6506, allocations: 1.219 kB / 0.9565 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.6506, allocations: 6.031 kB / 0.9565 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006759/0.6513, allocations: 0.5062 MB / 0.957 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.6513, allocations: 1.344 kB / 0.957 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.6515, allocations: 19.8 kB / 0.957 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.6515, allocations: 5.219 kB / 0.957 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.6515, allocations: 6.656 kB / 0.957 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.6515, allocations: 2.469 kB / 0.957 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.6515, allocations: 4.969 kB / 0.957 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004113/0.6519, allocations: 365.3 kB / 0.9574 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.495e-05/0.652, allocations: 100.2 kB / 0.9575 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.652, allocations: 4 kB / 0.9575 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.6522, allocations: 15.27 kB / 0.9575 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.6522, allocations: 22.83 kB / 0.9575 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.6522, allocations: 2.688 kB / 0.9575 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.403e-05/0.6523, allocations: 142.1 kB / 0.9577 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6523, allocations: 4 kB / 0.9577 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003389/0.6527, allocations: 27.25 kB / 0.9577 GB, free: 2.309 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.0001046/0.6528, allocations: 106 kB / 0.9578 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003116/0.6531, allocations: 114.5 kB / 0.9579 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6531, allocations: 4.062 kB / 0.9579 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.6533, allocations: 50.91 kB / 0.9579 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005723/0.6538, allocations: 71.12 kB / 0.958 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005778/0.6544, allocations: 422.2 kB / 0.9584 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001504/0.6546, allocations: 0.7209 MB / 0.9591 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.027e-05/0.6546, allocations: 19.22 kB / 0.9591 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6547, allocations: 0 / 0.9591 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of Templates: time 0.003753/0.6584, allocations: 2.14 MB / 0.9612 GB, free: 15.92 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