Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_10_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.001452/0.001452, 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.001735/0.001735, allocations: 199.8 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.342/1.342, allocations: 222.9 MB / 240.2 MB, free: 4.262 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.495/2.495, allocations: 437.1 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 67.89 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5361/0.5374, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002856/0.5403, allocations: 1.816 MB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008683/0.5412, allocations: 0.5338 MB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.5413, allocations: 11.88 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.5415, allocations: 23.72 kB / 1.02 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.132e-05/0.5416, allocations: 31.73 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.5418, allocations: 63.86 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.542, allocations: 171.5 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.5421, allocations: 57.56 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.601e-05/0.5422, allocations: 47.73 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.875e-05/0.5423, allocations: 67.62 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.5423, allocations: 8 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.08e-05/0.5424, allocations: 12 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.472e-05/0.5424, allocations: 31.84 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.938e-05/0.5425, allocations: 63.61 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.5426, allocations: 121.7 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.5427, allocations: 3.938 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.332e-06/0.5427, allocations: 0 / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.5427, allocations: 4 kB / 1.02 GB, free: 15.43 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000631/0.5433, allocations: 470.8 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.5433, allocations: 15.97 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.797e-05/0.5434, allocations: 38.73 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.21e-05/0.5434, allocations: 28.59 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.5437, allocations: 224 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.5437, allocations: 12.23 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/0.5437, allocations: 16.28 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002678/0.544, allocations: 158 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.544, allocations: 0 / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.544, allocations: 8 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.544, allocations: 0 / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002262/0.5443, allocations: 75.88 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007977/0.5451, allocations: 0.7392 MB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.5452, allocations: 42.56 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.5453, allocations: 32.83 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.5454, allocations: 4 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.5456, allocations: 126.6 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.795e-06/0.5456, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004686/0.5461, allocations: 165.3 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/0.5462, allocations: 140.7 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.5464, allocations: 195 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.5464, allocations: 29.7 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.403e-05/0.5465, allocations: 131.8 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.167e-05/0.5465, allocations: 35.75 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.746e-05/0.5466, allocations: 37.7 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.637e-05/0.5467, allocations: 330.8 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.5468, allocations: 39.97 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.547, allocations: 147.6 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.5473, allocations: 206.2 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.5473, allocations: 0 / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003945/0.5477, allocations: 217.1 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.5477, allocations: 4 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.5477, allocations: 4 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.5477, allocations: 8 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.5479, allocations: 32.17 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.5479, allocations: 4 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.548, allocations: 40.12 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.5481, allocations: 12 kB / 1.024 GB, free: 11.32 MB / 0.7794 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 9.922e-05/0.5482, allocations: 143.6 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.973e-05/0.5482, allocations: 15.81 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.998e-05/0.5482, allocations: 21.39 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.5483, allocations: 4.234 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.5483, allocations: 0 / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.5483, allocations: 3.984 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006893/0.549, allocations: 0.5132 MB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.549, allocations: 3.938 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.5491, allocations: 15.98 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.5491, allocations: 0 / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.5491, allocations: 8 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.5491, allocations: 3.938 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.5491, allocations: 4 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004701/0.5496, allocations: 356.2 kB / 1.025 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-05/0.5497, allocations: 100.9 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.878e-05/0.5497, allocations: 8 kB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.5499, allocations: 11.92 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.306e-05/0.5499, allocations: 15.98 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.55, allocations: 4 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001349/0.5501, allocations: 140.4 kB / 1.025 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5501, allocations: 0 / 1.025 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003282/0.5504, allocations: 28 kB / 1.025 GB, free: 9.832 MB / 0.7794 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.0007637/0.5512, allocations: 0.9065 MB / 1.026 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003181/0.5515, allocations: 115.8 kB / 1.026 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.5516, allocations: 0 / 1.026 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.5517, allocations: 52.84 kB / 1.026 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.5523, allocations: 87.23 kB / 1.026 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002466/0.5548, allocations: 2.245 MB / 1.029 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.5551, allocations: 0.7242 MB / 1.029 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.173e-05/0.5552, allocations: 17.95 kB / 1.029 GB, free: 5.43 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.467e-05/0.5553, allocations: 55.42 kB / 1.029 GB, free: 5.375 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.5553, allocations: 0 / 1.029 GB, free: 5.375 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.5751, allocations: 3.957 MB / 1.033 GB, free: 1.516 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.211/7.786, allocations: 12.62 kB / 1.033 GB, free: 1.504 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches