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.007341/0.007341, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001772/0.001772, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07864/0.07864, allocations: 15.32 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001288, allocations: 67.84 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08896/0.09026, allocations: 53.61 MB / 478.3 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004838/0.09513, allocations: 3.428 MB / 481.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005947/0.1011, allocations: 4.724 MB / 486.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003381/0.1015, allocations: 11.88 kB / 486.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004442/0.1019, allocations: 115.1 kB / 486.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001204/0.1032, allocations: 453.1 kB / 487 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.1044, allocations: 0.5283 MB / 487.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008561/0.1053, allocations: 0.5844 MB / 488.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004795/0.1058, allocations: 376.3 kB / 488.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004059/0.1062, allocations: 287.1 kB / 488.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000422/0.1066, allocations: 306.9 kB / 489.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.36e-05/0.1067, allocations: 52 kB / 489.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.1079, allocations: 467.4 kB / 489.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.108, allocations: 127.5 kB / 489.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002657/0.1083, allocations: 278.7 kB / 490 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001552/0.1099, allocations: 1.039 MB / 491 MB, free: 9.516 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1099, allocations: 3.938 kB / 491 MB, free: 9.512 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1099, allocations: 0 / 491 MB, free: 9.512 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.1099, allocations: 0 / 491 MB, free: 9.512 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.001514/0.1114, allocations: 0.8799 MB / 491.9 MB, free: 8.582 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.1115, allocations: 12.03 kB / 491.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.1116, allocations: 86.7 kB / 492 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003643/0.112, allocations: 92.33 kB / 492.1 MB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005569/0.1125, allocations: 370.5 kB / 492.4 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.279e-05/0.1126, allocations: 33.38 kB / 492.5 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.33e-05/0.1127, allocations: 56.33 kB / 492.5 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007188/0.1134, allocations: 454.5 kB / 493 MB, free: 7.449 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1134, allocations: 0 / 493 MB, free: 7.449 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.024e-05/0.1135, allocations: 20 kB / 493 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1135, allocations: 12 kB / 493 MB, free: 7.418 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008242/0.1143, allocations: 0.5075 MB / 493.5 MB, free: 6.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002424/0.1167, allocations: 1.534 MB / 495 MB, free: 5.277 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007704/0.1175, allocations: 370.3 kB / 495.4 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.1178, allocations: 120.8 kB / 495.5 MB, free: 4.789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002314/0.1201, allocations: 1.577 MB / 497.1 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.1201, allocations: 34.5 kB / 497.1 MB, free: 2.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.513e-06/0.1201, allocations: 0 / 497.1 MB, free: 2.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01395/0.1341, allocations: 2.34 MB / 499.5 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.1342, allocations: 59.41 kB / 499.5 MB, free: 488 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.1345, allocations: 300.4 kB / 499.8 MB, free: 172 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.227e-05/0.1346, allocations: 33.7 kB / 499.9 MB, free: 132 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.1348, allocations: 280.1 kB / 0.4884 GB, free: 15.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.1349, allocations: 118.9 kB / 0.4885 GB, free: 15.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001401/0.135, allocations: 78.12 kB / 0.4886 GB, free: 15.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1352, allocations: 346.8 kB / 0.4889 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.1354, allocations: 132.8 kB / 0.4891 GB, free: 15.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003368/0.1358, allocations: 264 kB / 0.4893 GB, free: 14.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006169/0.1364, allocations: 428.8 kB / 0.4897 GB, free: 14.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.1364, allocations: 4 kB / 0.4897 GB, free: 14.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003899/0.1403, allocations: 0.8119 MB / 0.4905 GB, free: 13.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.1404, allocations: 8.531 kB / 0.4905 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1404, allocations: 4 kB / 0.4905 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003417/0.1438, allocations: 409.2 kB / 0.4909 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.1441, allocations: 87.88 kB / 0.491 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006528/0.1507, allocations: 3.977 MB / 0.4949 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.1511, allocations: 16 kB / 0.4949 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-05/0.1511, allocations: 27.97 kB / 0.4949 GB, free: 8.754 MB / 382.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.0002524/0.1514, allocations: 169.7 kB / 0.4951 GB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.1515, allocations: 43.7 kB / 0.4951 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004772/0.1563, allocations: 0.8273 MB / 0.4959 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/0.1563, allocations: 4 kB / 0.4959 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1563, allocations: 4 kB / 0.4959 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1563, allocations: 4.078 kB / 0.4959 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000864/0.1572, allocations: 0.6154 MB / 0.4966 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.1572, allocations: 7.984 kB / 0.4966 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001937/0.1574, allocations: 51.92 kB / 0.4966 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004495/0.1619, allocations: 486.2 kB / 0.4971 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.434e-05/0.162, allocations: 24.02 kB / 0.4971 GB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007401/0.1694, allocations: 5.299 MB / 0.5023 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.1695, allocations: 11.98 kB / 0.5023 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1857/0.3552, allocations: 1.116 MB / 0.5034 GB, free: 34.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.3554, allocations: 118 kB / 0.5035 GB, free: 33.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.814e-05/0.3554, allocations: 8.531 kB / 0.5035 GB, free: 33.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.3557, allocations: 16.25 kB / 0.5035 GB, free: 33.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.3559, allocations: 43.2 kB / 0.5035 GB, free: 33.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.766e-05/0.3559, allocations: 17.78 kB / 0.5036 GB, free: 33.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.3561, allocations: 203.5 kB / 0.5038 GB, free: 33.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3561, allocations: 3.719 kB / 0.5038 GB, free: 33.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008066/0.3569, allocations: 244.9 kB / 0.504 GB, free: 33.84 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.005323/0.3623, allocations: 1.85 MB / 0.5058 GB, free: 33.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.3636, allocations: 0.6947 MB / 0.5065 GB, free: 32.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3636, allocations: 0 / 0.5065 GB, free: 32.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008273/0.3644, allocations: 0.6215 MB / 0.5071 GB, free: 32.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006573/0.3651, allocations: 108 kB / 0.5072 GB, free: 32.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.3757, allocations: 4.605 MB / 0.5117 GB, free: 30.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.3761, allocations: 0.8321 MB / 0.5125 GB, free: 29.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002898/0.3764, allocations: 74.52 kB / 0.5126 GB, free: 29.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.3766, allocations: 174.8 kB / 0.5127 GB, free: 29.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3766, allocations: 0 / 0.5127 GB, free: 29.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05752/0.4342, allocations: 15.32 MB / 0.5277 GB, free: 24.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.15, allocations: 7.312 kB / 0.5277 GB, free: 24.21 MB / 382.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)