Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfWater.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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",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.007159/0.007159, allocations: 102.1 kB / 15.73 MB, free: 5.988 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.001751/0.001751, allocations: 196.2 kB / 16.67 MB, free: 5.926 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.249/0.249, allocations: 15.32 MB / 305.8 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 63.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3036, allocations: 53.6 MB / 478.3 MB, free: 25.47 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004295/0.3079, allocations: 3.426 MB / 481.7 MB, free: 23.03 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00451/0.3125, allocations: 4.736 MB / 486.5 MB, free: 19.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003727/0.3129, allocations: 3.844 kB / 486.5 MB, free: 19.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004682/0.3133, allocations: 116.4 kB / 486.6 MB, free: 19.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.3146, allocations: 441.9 kB / 487 MB, free: 19.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001625/0.3162, allocations: 0.5279 MB / 487.5 MB, free: 18.89 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007795/0.317, allocations: 0.5767 MB / 488.1 MB, free: 18.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004318/0.3174, allocations: 373.3 kB / 488.5 MB, free: 18.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002808/0.3177, allocations: 285.7 kB / 488.8 MB, free: 18.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003777/0.3181, allocations: 310.5 kB / 489.1 MB, free: 17.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.468e-05/0.3182, allocations: 52 kB / 489.1 MB, free: 17.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.3195, allocations: 472.8 kB / 489.6 MB, free: 17.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.3196, allocations: 122.2 kB / 489.7 MB, free: 17.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002354/0.3199, allocations: 284.1 kB / 490 MB, free: 17.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001382/0.3213, allocations: 1.039 MB / 491 MB, free: 16.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3213, allocations: 0 / 491 MB, free: 16.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3213, allocations: 3.938 kB / 491 MB, free: 16.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.477e-06/0.3213, allocations: 1.656 kB / 491 MB, free: 16.86 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001294/0.3226, allocations: 0.8664 MB / 491.9 MB, free: 16.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3227, allocations: 9.406 kB / 491.9 MB, free: 16.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.743e-05/0.3228, allocations: 85.38 kB / 492 MB, free: 16.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003759/0.3231, allocations: 97.33 kB / 492.1 MB, free: 16.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005221/0.3237, allocations: 364.4 kB / 492.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.692e-05/0.3237, allocations: 36.34 kB / 492.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.523e-05/0.3238, allocations: 46.88 kB / 492.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008179/0.3246, allocations: 456.8 kB / 493 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.3247, allocations: 0 / 493 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.008e-05/0.3247, allocations: 20.25 kB / 493 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.3247, allocations: 11.16 kB / 493 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007172/0.3254, allocations: 0.5119 MB / 493.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.3276, allocations: 1.524 MB / 495 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009038/0.3286, allocations: 374.8 kB / 495.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/0.3288, allocations: 119.6 kB / 495.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00208/0.3309, allocations: 1.57 MB / 497.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.3309, allocations: 32.03 kB / 497.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.462e-06/0.3309, allocations: 0 / 497.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01388/0.3448, allocations: 2.338 MB / 499.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.264e-05/0.3449, allocations: 59.53 kB / 499.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.3451, allocations: 296.8 kB / 499.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.3452, allocations: 31.08 kB / 499.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.3453, allocations: 278.8 kB / 0.4884 GB, free: 10.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.529e-05/0.3454, allocations: 108.2 kB / 0.4885 GB, free: 10.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.3455, allocations: 83.11 kB / 0.4886 GB, free: 10.06 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.532e-05/0.3456, allocations: 341.7 kB / 0.4889 GB, free: 9.727 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.3458, allocations: 134.8 kB / 0.489 GB, free: 9.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.3461, allocations: 256.8 kB / 0.4893 GB, free: 9.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005531/0.3466, allocations: 439.1 kB / 0.4897 GB, free: 9.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3466, allocations: 1.312 kB / 0.4897 GB, free: 9.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004096/0.3507, allocations: 0.8213 MB / 0.4905 GB, free: 8.648 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3508, allocations: 6.375 kB / 0.4905 GB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.3508, allocations: 5.406 kB / 0.4905 GB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003477/0.3543, allocations: 409.9 kB / 0.4909 GB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.3545, allocations: 77.89 kB / 0.491 GB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005544/0.3601, allocations: 3.987 MB / 0.4948 GB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000374/0.3605, allocations: 15.69 kB / 0.4949 GB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.63e-05/0.3605, allocations: 20.62 kB / 0.4949 GB, free: 4.828 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002149/0.3608, allocations: 167.8 kB / 0.495 GB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.082e-05/0.3608, allocations: 36.41 kB / 0.4951 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004736/0.3656, allocations: 0.8328 MB / 0.4959 GB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.3656, allocations: 4 kB / 0.4959 GB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3656, allocations: 4 kB / 0.4959 GB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3656, allocations: 0 / 0.4959 GB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006581/0.3663, allocations: 0.6234 MB / 0.4965 GB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3663, allocations: 4 kB / 0.4965 GB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.3665, allocations: 51.91 kB / 0.4966 GB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004185/0.3707, allocations: 486.2 kB / 0.497 GB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.3707, allocations: 23.92 kB / 0.497 GB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006952/0.3777, allocations: 5.303 MB / 0.5022 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.3777, allocations: 4 kB / 0.5022 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005314/0.383, allocations: 1.129 MB / 0.5033 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.3832, allocations: 116.6 kB / 0.5034 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7e-05/0.3833, allocations: 8 kB / 0.5034 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.3836, allocations: 11.98 kB / 0.5035 GB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3837, allocations: 47.83 kB / 0.5035 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.277e-05/0.3838, allocations: 19.98 kB / 0.5035 GB, free: 11.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000356/0.3842, allocations: 199.2 kB / 0.5037 GB, free: 11.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3842, allocations: 8 kB / 0.5037 GB, free: 11.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001154/0.3853, allocations: 235.9 kB / 0.5039 GB, free: 11.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (liquidWater.amountOfBonds,liquidWater.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006232/0.3916, allocations: 1.849 MB / 0.5058 GB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001531/0.3931, allocations: 0.6815 MB / 0.5064 GB, free: 8.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3932, allocations: 0 / 0.5064 GB, free: 8.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009055/0.3941, allocations: 0.6211 MB / 0.507 GB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007771/0.3949, allocations: 104.1 kB / 0.5071 GB, free: 7.938 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01187/0.4068, allocations: 4.587 MB / 0.5116 GB, free: 3.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.4072, allocations: 0.8353 MB / 0.5124 GB, free: 2.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.4075, allocations: 71.27 kB / 0.5125 GB, free: 2.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/0.4077, allocations: 171.3 kB / 0.5126 GB, free: 1.992 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4077, allocations: 0 / 0.5126 GB, free: 1.992 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0486/0.4564, allocations: 15.32 MB / 0.5276 GB, free: 2.828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.53, allocations: 0 / 0.5276 GB, free: 2.828 MB / 398.1 MB (rm -f Chemical_Chemical.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfWater.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.HeatingOfWater_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)