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.006979/0.00698, allocations: 98.98 kB / 15.73 MB, free: 6.449 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.001175/0.001176, allocations: 197.2 kB / 16.68 MB, free: 6.348 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.363 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.388/2.388, allocations: 390.2 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 67.72 kB / 0.9504 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2643, allocations: 140.4 MB / 1.087 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003047/0.2674, allocations: 1.817 MB / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001036/0.2685, allocations: 0.5415 MB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.2687, allocations: 3.938 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.2688, allocations: 27.73 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.13e-05/0.2689, allocations: 35.72 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.2691, allocations: 59.86 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000227/0.2694, allocations: 167.5 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.2695, allocations: 61.56 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.2697, allocations: 59.66 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.047e-05/0.2697, allocations: 55.7 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.2698, allocations: 12 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.161e-05/0.2698, allocations: 8 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.742e-05/0.2698, allocations: 31.86 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.896e-05/0.2699, allocations: 59.59 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001871/0.2701, allocations: 139.5 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2701, allocations: 0 / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.512e-06/0.2701, allocations: 0 / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.2701, allocations: 4 kB / 1.09 GB, free: 14.95 MB / 0.8575 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.000695/0.2708, allocations: 478.6 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2709, allocations: 12.03 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.2709, allocations: 38.73 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.748e-05/0.271, allocations: 28.78 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.2713, allocations: 236.5 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.2713, allocations: 12.38 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.2714, allocations: 12.38 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003004/0.2717, allocations: 150 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.2717, allocations: 3.938 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.2717, allocations: 4 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.2717, allocations: 8 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.272, allocations: 73.77 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008734/0.2728, allocations: 0.7317 MB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.273, allocations: 46.55 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.2731, allocations: 40.77 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.2731, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.2734, allocations: 134.6 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.2734, allocations: 0 / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004933/0.2739, allocations: 169.6 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.274, allocations: 132.5 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.2742, allocations: 199 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.2742, allocations: 29.7 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.411e-05/0.2743, allocations: 131.7 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.461e-05/0.2744, allocations: 39.69 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.169e-05/0.2744, allocations: 41.7 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.2745, allocations: 330.8 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.2747, allocations: 43.97 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.2749, allocations: 151.6 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003174/0.2752, allocations: 194.4 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.2752, allocations: 0 / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004279/0.2757, allocations: 209.2 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.2757, allocations: 8 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.2757, allocations: 4 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.2757, allocations: 4.25 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.2759, allocations: 35.86 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.2759, allocations: 16.38 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.276, allocations: 39.81 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.2761, allocations: 12 kB / 1.094 GB, free: 10.82 MB / 0.8575 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.0001144/0.2762, allocations: 131 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.243e-05/0.2762, allocations: 20.08 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.601e-05/0.2763, allocations: 25.39 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2763, allocations: 3.984 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.2763, allocations: 4 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2763, allocations: 0 / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007707/0.2771, allocations: 0.5172 MB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.2771, allocations: 0 / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.2772, allocations: 15.98 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.76e-06/0.2772, allocations: 4 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.2773, allocations: 4 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.083e-06/0.2773, allocations: 7.938 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.2773, allocations: 7.938 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004999/0.2778, allocations: 348.4 kB / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.963e-05/0.2779, allocations: 105 kB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.2779, allocations: 4 kB / 1.095 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.2781, allocations: 15.92 kB / 1.095 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.135e-05/0.2781, allocations: 15.92 kB / 1.095 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.2782, allocations: 7.938 kB / 1.095 GB, free: 9.488 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000113/0.2783, allocations: 140.6 kB / 1.095 GB, free: 9.352 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2783, allocations: 0 / 1.095 GB, free: 9.352 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003428/0.2786, allocations: 28 kB / 1.095 GB, free: 9.324 MB / 0.8575 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.0007802/0.2794, allocations: 0.9006 MB / 1.096 GB, free: 8.391 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003413/0.2798, allocations: 115.7 kB / 1.096 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2798, allocations: 0 / 1.096 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.2799, allocations: 52.91 kB / 1.097 GB, free: 8.227 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005702/0.2805, allocations: 66.12 kB / 1.097 GB, free: 8.164 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.283, allocations: 2.263 MB / 1.099 GB, free: 5.703 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.2833, allocations: 0.7242 MB / 1.099 GB, free: 4.953 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.041e-05/0.2834, allocations: 17.95 kB / 1.1 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.294e-05/0.2835, allocations: 51.42 kB / 1.1 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of SimCode: time 4.71e-07/0.2835, allocations: 0 / 1.1 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.3062, allocations: 4.033 MB / 1.103 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.853/8.159, allocations: 7.5 kB / 1.104 GB, free: 0.9648 MB / 0.8575 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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