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.006969/0.006969, allocations: 99.62 kB / 15.73 MB, free: 6.043 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.001611/0.001611, allocations: 191.2 kB / 16.67 MB, free: 5.957 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.204/2.204, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 64.14 kB / 0.9504 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7032/0.7045, allocations: 140.4 MB / 1.087 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002924/0.7074, allocations: 1.815 MB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009649/0.7084, allocations: 0.5507 MB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.7085, allocations: 2.281 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.7087, allocations: 23.2 kB / 1.09 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.629e-05/0.7088, allocations: 24.41 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002144/0.709, allocations: 65.31 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.7092, allocations: 173.6 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.7094, allocations: 56.31 kB / 1.09 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.579e-05/0.7095, allocations: 53.75 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.008e-05/0.7096, allocations: 56.72 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.7096, allocations: 10.56 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.269e-05/0.7096, allocations: 14.34 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.06e-05/0.7097, allocations: 25.72 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.468e-05/0.7098, allocations: 67.53 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002192/0.71, allocations: 142.3 kB / 1.09 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.71, allocations: 0 / 1.09 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.984e-06/0.71, allocations: 0 / 1.09 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.864e-06/0.71, allocations: 1.219 kB / 1.09 GB, free: 3.254 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.0007321/0.7108, allocations: 472.4 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.7108, allocations: 9.906 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.148e-05/0.7109, allocations: 44.91 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.146e-05/0.7109, allocations: 18.72 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.7112, allocations: 233.9 kB / 1.091 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.101e-05/0.7113, allocations: 9.562 kB / 1.091 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.626e-05/0.7113, allocations: 16.27 kB / 1.091 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.7116, allocations: 156.4 kB / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.7117, allocations: 0 / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.7117, allocations: 6.703 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.7117, allocations: 3.094 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.7119, allocations: 67.78 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008894/0.7128, allocations: 0.737 MB / 1.092 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.713, allocations: 57.2 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.7131, allocations: 34.8 kB / 1.092 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.7132, allocations: 1.156 kB / 1.092 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.7134, allocations: 118.4 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.7134, allocations: 4.938 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005352/0.714, allocations: 164.3 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.714, allocations: 132.2 kB / 1.093 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.7143, allocations: 201 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.7143, allocations: 30.41 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.441e-05/0.7144, allocations: 142.1 kB / 1.093 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/0.7144, allocations: 34.92 kB / 1.093 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.766e-05/0.7145, allocations: 40.59 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.047e-05/0.7145, allocations: 329.2 kB / 1.093 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.7147, allocations: 37.03 kB / 1.093 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.7148, allocations: 148.8 kB / 1.094 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.7151, allocations: 205 kB / 1.094 GB, free: 336 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.7151, allocations: 1.406 kB / 1.094 GB, free: 336 kB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004043/0.7156, allocations: 208 kB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.7156, allocations: 7.859 kB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.7156, allocations: 8.219 kB / 1.094 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.7156, allocations: 5.406 kB / 1.094 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.7158, allocations: 37.47 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.7158, allocations: 6.312 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.7159, allocations: 28.31 kB / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.7159, allocations: 9.359 kB / 1.094 GB, free: 212 kB / 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 8.243e-05/0.716, allocations: 143.8 kB / 1.094 GB, free: 68 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.062e-05/0.7161, allocations: 21.06 kB / 1.094 GB, free: 56 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.516e-05/0.7161, allocations: 21.5 kB / 1.094 GB, free: 44 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.7161, allocations: 2.125 kB / 1.094 GB, free: 44 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.7161, allocations: 2.734 kB / 1.094 GB, free: 44 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.7162, allocations: 1.75 kB / 1.094 GB, free: 44 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008404/0.717, allocations: 0.5141 MB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.717, allocations: 4.938 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.7171, allocations: 18.83 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.7172, allocations: 2.156 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.7172, allocations: 7.156 kB / 1.095 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.7172, allocations: 5.375 kB / 1.095 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.7172, allocations: 5.438 kB / 1.095 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005519/0.7177, allocations: 361.2 kB / 1.095 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.456e-05/0.7178, allocations: 95.39 kB / 1.095 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.7179, allocations: 6.906 kB / 1.095 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.718, allocations: 15.67 kB / 1.095 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/0.7181, allocations: 18.22 kB / 1.095 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.7181, allocations: 9.297 kB / 1.095 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000115/0.7182, allocations: 137.5 kB / 1.095 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7182, allocations: 0 / 1.095 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003314/0.7186, allocations: 31.69 kB / 1.095 GB, free: 15.1 MB / 0.8731 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.0008026/0.7194, allocations: 0.8921 MB / 1.096 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003339/0.7197, allocations: 118.4 kB / 1.096 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.7197, allocations: 0.875 kB / 1.096 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.7199, allocations: 49 kB / 1.096 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005657/0.7205, allocations: 64.34 kB / 1.097 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002641/0.7231, allocations: 2.268 MB / 1.099 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.7234, allocations: 0.7195 MB / 1.099 GB, free: 11.67 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.754e-05/0.7235, allocations: 24.73 kB / 1.099 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.911e-05/0.7236, allocations: 50.88 kB / 1.1 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of SimCode: time 4.61e-07/0.7236, allocations: 3.938 kB / 1.1 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.7461, allocations: 4.019 MB / 1.103 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.754/8.501, allocations: 9.594 kB / 1.103 GB, free: 11.05 MB / 0.8731 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