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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 108 kB / 15.6 MB, free: 132 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.001199/0.001199, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.223/2.223, allocations: 390.3 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.91 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7605/0.7618, allocations: 140.4 MB / 0.9497 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003121/0.765, allocations: 1.819 MB / 0.9515 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009024/0.7659, allocations: 0.5343 MB / 0.952 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.7661, allocations: 5.5 kB / 0.952 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.7662, allocations: 25.34 kB / 0.952 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.167e-05/0.7663, allocations: 27.34 kB / 0.9521 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.7665, allocations: 60.62 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000199/0.7667, allocations: 171.6 kB / 0.9523 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.7669, allocations: 63.23 kB / 0.9524 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.818e-05/0.7669, allocations: 51.39 kB / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.778e-05/0.767, allocations: 56.55 kB / 0.9525 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.623e-05/0.767, allocations: 10.72 kB / 0.9525 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.138e-05/0.7671, allocations: 10.12 kB / 0.9525 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.14e-05/0.7671, allocations: 28.34 kB / 0.9525 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.288e-05/0.7672, allocations: 63.42 kB / 0.9526 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.7673, allocations: 135.1 kB / 0.9527 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.7673, allocations: 0 / 0.9527 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.502e-06/0.7673, allocations: 0 / 0.9527 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.7673, allocations: 1.031 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.0006383/0.768, allocations: 476.9 kB / 0.9532 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.768, allocations: 9.25 kB / 0.9532 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.908e-05/0.7681, allocations: 42.33 kB / 0.9532 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.7681, allocations: 22.12 kB / 0.9532 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.7683, allocations: 225.5 kB / 0.9534 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.7683, allocations: 8.688 kB / 0.9534 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.7684, allocations: 17.03 kB / 0.9535 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.7686, allocations: 154.4 kB / 0.9536 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.7687, allocations: 1.5 kB / 0.9536 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.7687, allocations: 1.406 kB / 0.9536 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.7687, allocations: 2.594 kB / 0.9536 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.7689, allocations: 85.59 kB / 0.9537 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006999/0.7696, allocations: 0.7392 MB / 0.9544 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.7698, allocations: 41.28 kB / 0.9545 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.8e-05/0.7699, allocations: 40.45 kB / 0.9545 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.7699, allocations: 1.125 kB / 0.9545 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.7701, allocations: 129.8 kB / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.7701, allocations: 0 / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004475/0.7706, allocations: 168.6 kB / 0.9548 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.7707, allocations: 139.5 kB / 0.9549 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.7708, allocations: 204 kB / 0.9551 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.7708, allocations: 30.86 kB / 0.9551 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.414e-05/0.7709, allocations: 127.5 kB / 0.9553 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.685e-05/0.7709, allocations: 33.05 kB / 0.9553 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/0.771, allocations: 40.2 kB / 0.9553 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.334e-05/0.7711, allocations: 327.2 kB / 0.9556 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.7712, allocations: 41.59 kB / 0.9557 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.7713, allocations: 148.8 kB / 0.9558 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002603/0.7716, allocations: 205.2 kB / 0.956 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.7716, allocations: 1.125 kB / 0.956 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003631/0.772, allocations: 206.2 kB / 0.9562 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.772, allocations: 7.781 kB / 0.9562 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.772, allocations: 2.875 kB / 0.9562 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.772, allocations: 5.156 kB / 0.9562 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.7722, allocations: 32.61 kB / 0.9563 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.7722, allocations: 8.344 kB / 0.9563 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001322/0.7723, allocations: 36.61 kB / 0.9563 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.7723, allocations: 8.344 kB / 0.9563 GB, free: 3.469 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.239e-05/0.7724, allocations: 144.5 kB / 0.9565 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.804e-05/0.7725, allocations: 20.75 kB / 0.9565 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.585e-05/0.7725, allocations: 21.8 kB / 0.9565 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.7725, allocations: 2.875 kB / 0.9565 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.7725, allocations: 5.438 kB / 0.9565 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.7725, allocations: 1.094 kB / 0.9565 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005912/0.7731, allocations: 0.5128 MB / 0.957 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.7731, allocations: 0 / 0.957 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.7732, allocations: 14.64 kB / 0.957 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.7732, allocations: 7.781 kB / 0.957 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.7733, allocations: 4.047 kB / 0.957 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.7733, allocations: 7.688 kB / 0.957 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.7733, allocations: 7.984 kB / 0.957 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.7737, allocations: 349.5 kB / 0.9574 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.7737, allocations: 98.83 kB / 0.9575 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.7738, allocations: 13.41 kB / 0.9575 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.7739, allocations: 19.64 kB / 0.9575 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.774, allocations: 14.08 kB / 0.9575 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.774, allocations: 4.031 kB / 0.9575 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.464e-05/0.7741, allocations: 138.5 kB / 0.9576 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7741, allocations: 3.938 kB / 0.9577 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003129/0.7744, allocations: 25.75 kB / 0.9577 GB, free: 2.258 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.0005847/0.775, allocations: 0.903 MB / 0.9586 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003/0.7753, allocations: 113.8 kB / 0.9587 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.7753, allocations: 1 kB / 0.9587 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.7755, allocations: 48.91 kB / 0.9587 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005419/0.776, allocations: 73.91 kB / 0.9588 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.7783, allocations: 2.259 MB / 0.961 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.7786, allocations: 0.7252 MB / 0.9617 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.174e-05/0.7787, allocations: 15.17 kB / 0.9617 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.322e-05/0.7788, allocations: 49.05 kB / 0.9618 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.7788, allocations: 5.312 kB / 0.9618 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.8015, allocations: 3.959 MB / 0.9656 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.93/7.731, allocations: 5.234 kB / 0.9656 GB, free: 12.55 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > 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