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.001656/0.001657, 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.00219/0.002191, allocations: 194.2 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 2.868/2.868, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.5666/0.5666, allocations: 15.32 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002591/0.002591, allocations: 67.89 kB / 370.4 MB, free: 3.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2538, allocations: 53.61 MB / 424 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.009517/0.2634, allocations: 3.432 MB / 427.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.2752, allocations: 4.732 MB / 432.2 MB, free: 6.023 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009544/0.2762, allocations: 11.94 kB / 432.2 MB, free: 6.012 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008351/0.2771, allocations: 111 kB / 432.3 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002897/0.2801, allocations: 449.1 kB / 432.8 MB, free: 5.461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003387/0.2835, allocations: 0.5244 MB / 433.3 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001993/0.2856, allocations: 0.5805 MB / 433.9 MB, free: 4.352 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000896/0.2865, allocations: 372.3 kB / 434.2 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006391/0.2871, allocations: 279.2 kB / 434.5 MB, free: 3.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007489/0.2879, allocations: 302.8 kB / 434.8 MB, free: 3.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001315/0.2881, allocations: 52 kB / 434.9 MB, free: 3.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00343/0.2915, allocations: 471.4 kB / 435.3 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003465/0.2919, allocations: 131.6 kB / 435.4 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006109/0.2925, allocations: 274.7 kB / 435.7 MB, free: 2.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003076/0.2956, allocations: 1.035 MB / 436.7 MB, free: 1.461 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.293e-05/0.2957, allocations: 0 / 436.7 MB, free: 1.461 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.2957, allocations: 0 / 436.7 MB, free: 1.461 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.2957, allocations: 0 / 436.7 MB, free: 1.461 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.002813/0.2986, allocations: 0.8537 MB / 437.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.94e-05/0.2987, allocations: 8.031 kB / 437.6 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002053/0.2989, allocations: 90.64 kB / 437.7 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007431/0.2996, allocations: 92 kB / 437.8 MB, free: 372 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5423/0.8419, allocations: 354.4 kB / 438.1 MB, free: 53.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.8421, allocations: 36.25 kB / 438.2 MB, free: 53.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002245/0.8424, allocations: 48.09 kB / 438.2 MB, free: 53.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.8436, allocations: 451.7 kB / 438.7 MB, free: 53.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.8437, allocations: 3.438 kB / 438.7 MB, free: 53.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.526e-05/0.8438, allocations: 18.41 kB / 438.7 MB, free: 53.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/0.8438, allocations: 11.66 kB / 438.7 MB, free: 53.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.8451, allocations: 0.5049 MB / 439.2 MB, free: 53.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003822/0.849, allocations: 1.547 MB / 440.7 MB, free: 52.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.8501, allocations: 367.8 kB / 441.1 MB, free: 52.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.8504, allocations: 121.8 kB / 441.2 MB, free: 52.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003004/0.8534, allocations: 1.568 MB / 442.8 MB, free: 51.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.8535, allocations: 34.44 kB / 442.8 MB, free: 51.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 4.849e-06/0.8535, allocations: 2.938 kB / 442.8 MB, free: 51.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.02297/0.8764, allocations: 2.341 MB / 445.2 MB, free: 50.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/0.8766, allocations: 54.88 kB / 445.2 MB, free: 50.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005528/0.8772, allocations: 295.9 kB / 445.5 MB, free: 50.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.809e-05/0.8772, allocations: 32.08 kB / 445.5 MB, free: 50.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.8775, allocations: 272.3 kB / 445.8 MB, free: 50.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.8777, allocations: 111.5 kB / 445.9 MB, free: 50.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002383/0.8779, allocations: 86.53 kB / 446 MB, free: 50.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.8781, allocations: 340.4 kB / 446.3 MB, free: 50.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003914/0.8785, allocations: 131.1 kB / 446.5 MB, free: 50.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000594/0.8791, allocations: 264.8 kB / 446.7 MB, free: 50.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008943/0.88, allocations: 430.4 kB / 447.1 MB, free: 49.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.88, allocations: 4 kB / 447.1 MB, free: 49.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.009487/0.8895, allocations: 0.8205 MB / 448 MB, free: 49.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.824e-05/0.8896, allocations: 9.156 kB / 448 MB, free: 49.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.8897, allocations: 3.156 kB / 448 MB, free: 49.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005114/0.8948, allocations: 417.6 kB / 448.4 MB, free: 49.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005628/0.8954, allocations: 83.14 kB / 448.5 MB, free: 49.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009352/0.9048, allocations: 3.976 MB / 452.4 MB, free: 46.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006947/0.9056, allocations: 17.22 kB / 452.5 MB, free: 46.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.9057, allocations: 23.25 kB / 452.5 MB, free: 46.21 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.0004444/0.9062, allocations: 167.8 kB / 452.6 MB, free: 46.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.9064, allocations: 35.19 kB / 452.7 MB, free: 46.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007122/0.9136, allocations: 0.835 MB / 453.5 MB, free: 45.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.701e-05/0.9136, allocations: 7.031 kB / 453.5 MB, free: 45.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.9137, allocations: 7.5 kB / 453.5 MB, free: 45.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.9137, allocations: 3.375 kB / 453.5 MB, free: 45.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00146/0.9152, allocations: 0.6334 MB / 454.2 MB, free: 45.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/0.9152, allocations: 0 / 454.2 MB, free: 45.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.9155, allocations: 54.27 kB / 454.2 MB, free: 45.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006508/0.9221, allocations: 489.5 kB / 454.7 MB, free: 45.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.9222, allocations: 12.28 kB / 454.7 MB, free: 45.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/0.9329, allocations: 5.319 MB / 460 MB, free: 40.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/0.933, allocations: 3.156 kB / 460 MB, free: 40.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007583/0.9406, allocations: 1.122 MB / 461.1 MB, free: 39.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000283/0.941, allocations: 109.1 kB / 461.3 MB, free: 39.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.9411, allocations: 7.312 kB / 461.3 MB, free: 39.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005413/0.9417, allocations: 22.12 kB / 461.3 MB, free: 39.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.9419, allocations: 38.7 kB / 461.3 MB, free: 39.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.647e-05/0.942, allocations: 16.72 kB / 461.3 MB, free: 39.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003477/0.9424, allocations: 202.8 kB / 461.5 MB, free: 39.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.9424, allocations: 0 / 461.5 MB, free: 39.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001636/0.944, allocations: 237.7 kB / 461.8 MB, free: 39.7 MB / 366.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.008817/0.9529, allocations: 1.857 MB / 463.6 MB, free: 38.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002303/0.9552, allocations: 0.7016 MB / 464.3 MB, free: 38.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.9553, allocations: 0 / 464.3 MB, free: 38.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.9568, allocations: 0.6193 MB / 464.9 MB, free: 37.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.9583, allocations: 104.8 kB / 465 MB, free: 37.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02198/0.9803, allocations: 4.616 MB / 469.7 MB, free: 34.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007792/0.9812, allocations: 0.8287 MB / 470.5 MB, free: 34.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006058/0.9818, allocations: 70.02 kB / 470.6 MB, free: 34.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004138/0.9822, allocations: 179.1 kB / 470.7 MB, free: 34.13 MB / 366.1 MB Notification: Performance of SimCode: time 2.735e-06/0.9823, allocations: 0 / 470.7 MB, free: 34.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2267/1.209, allocations: 15.13 MB / 485.9 MB, free: 31.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.76/24.96, allocations: 5.031 kB / 485.9 MB, free: 31.05 MB / 366.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)