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.005668/0.005668, allocations: 100.2 kB / 15.73 MB, free: 6.047 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.001114/0.001114, allocations: 195.3 kB / 16.67 MB, free: 5.949 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.419/1.419, 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 10.1.1-maint.10.0.x/package.mo): time 2.521/2.521, allocations: 437 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.91 kB / 1.018 GB, free: 9.898 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8039/0.8053, allocations: 151.6 MB / 1.166 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003141/0.8085, allocations: 1.817 MB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001054/0.8096, allocations: 0.5377 MB / 1.168 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.8097, allocations: 7.938 kB / 1.168 GB, free: 1.422 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.8099, allocations: 23.72 kB / 1.168 GB, free: 1.398 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.576e-05/0.81, allocations: 23.75 kB / 1.169 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002474/0.8103, allocations: 67.84 kB / 1.169 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.8105, allocations: 175.5 kB / 1.169 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.8107, allocations: 57.62 kB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.487e-05/0.8108, allocations: 47.73 kB / 1.169 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.547e-05/0.8109, allocations: 63.64 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.8109, allocations: 8 kB / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.314e-05/0.811, allocations: 12 kB / 1.169 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.573e-05/0.811, allocations: 31.91 kB / 1.169 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.239e-05/0.8111, allocations: 67.55 kB / 1.169 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.8113, allocations: 135 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.8113, allocations: 0 / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.273e-06/0.8113, allocations: 0 / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.8113, allocations: 0 / 1.169 GB, free: 0.7227 MB / 0.8887 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.0007538/0.8121, allocations: 482.5 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.8121, allocations: 12.92 kB / 1.17 GB, free: 196 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.201e-05/0.8122, allocations: 42.73 kB / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.339e-05/0.8122, allocations: 16.84 kB / 1.17 GB, free: 128 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000354/0.8126, allocations: 236 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.829e-06/0.8126, allocations: 4.375 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.273e-05/0.8127, allocations: 16.31 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/0.813, allocations: 166.8 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.813, allocations: 0 / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.813, allocations: 8 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.813, allocations: 0 / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.8133, allocations: 71.88 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009052/0.8142, allocations: 0.7356 MB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.8143, allocations: 50.55 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.8144, allocations: 28.84 kB / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.8145, allocations: 11.92 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.8147, allocations: 122.8 kB / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.8147, allocations: 0 / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0004786/0.8152, allocations: 165.6 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.8153, allocations: 136.5 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.8155, allocations: 203 kB / 1.172 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.8155, allocations: 29.95 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.134e-05/0.8156, allocations: 139.9 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.111e-05/0.8157, allocations: 31.73 kB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.969e-05/0.8157, allocations: 37.72 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.8159, allocations: 330.8 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.816, allocations: 35.97 kB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.8162, allocations: 152.1 kB / 1.172 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.8165, allocations: 210.3 kB / 1.172 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.8165, allocations: 8 kB / 1.172 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004056/0.8169, allocations: 197.6 kB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.817, allocations: 8.062 kB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.817, allocations: 4 kB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.817, allocations: 8 kB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.8172, allocations: 39.91 kB / 1.173 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.8172, allocations: 7.938 kB / 1.173 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.8173, allocations: 23.88 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.8173, allocations: 12 kB / 1.173 GB, free: 12.61 MB / 0.9044 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.0001151/0.8175, allocations: 136.2 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.8175, allocations: 23.89 kB / 1.173 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.403e-05/0.8176, allocations: 17.66 kB / 1.173 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.8176, allocations: 4 kB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.8176, allocations: 4 kB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.8176, allocations: 0 / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00077/0.8184, allocations: 0.521 MB / 1.173 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.8184, allocations: 0 / 1.173 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.8185, allocations: 23.92 kB / 1.173 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.8185, allocations: 0 / 1.173 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.8185, allocations: 15.86 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.8186, allocations: 7.922 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.8186, allocations: 4 kB / 1.174 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.8191, allocations: 352.3 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.713e-05/0.8191, allocations: 92.95 kB / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.8192, allocations: 8 kB / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.8194, allocations: 11.97 kB / 1.174 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.8194, allocations: 19.98 kB / 1.174 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.8194, allocations: 7.984 kB / 1.174 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001153/0.8196, allocations: 140.4 kB / 1.174 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8196, allocations: 0 / 1.174 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003457/0.8199, allocations: 28 kB / 1.174 GB, free: 11.09 MB / 0.9044 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.000798/0.8207, allocations: 0.9046 MB / 1.175 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000326/0.8211, allocations: 116.1 kB / 1.175 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.8211, allocations: 0 / 1.175 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.8212, allocations: 43.92 kB / 1.175 GB, free: 10 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005812/0.8218, allocations: 77.06 kB / 1.175 GB, free: 9.93 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002739/0.8246, allocations: 2.279 MB / 1.177 GB, free: 7.465 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.8249, allocations: 0.7242 MB / 1.178 GB, free: 6.715 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.763e-05/0.825, allocations: 17.55 kB / 1.178 GB, free: 6.699 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.84e-05/0.8251, allocations: 51.42 kB / 1.178 GB, free: 6.648 MB / 0.9044 GB Notification: Performance of SimCode: time 6.92e-07/0.8251, allocations: 0 / 1.178 GB, free: 6.648 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02908/0.8542, allocations: 4.012 MB / 1.182 GB, free: 2.754 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.83/8.685, allocations: 19.73 kB / 1.182 GB, free: 2.734 MB / 0.9044 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