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.001093/0.001093, allocations: 108 kB / 15.61 MB, free: 152 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.001079/0.001079, allocations: 195.3 kB / 16.53 MB, free: 6.699 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.143/1.143, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1599/0.1599, allocations: 15.31 MB / 305.7 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 59.91 kB / 370.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07648/0.0776, allocations: 53.62 MB / 424 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.003892/0.08151, allocations: 3.426 MB / 427.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004644/0.08617, allocations: 4.732 MB / 432.2 MB, free: 5.977 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002366/0.08643, allocations: 7.938 kB / 432.2 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003357/0.08677, allocations: 111.1 kB / 432.3 MB, free: 5.859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000861/0.08765, allocations: 453 kB / 432.8 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008761/0.08854, allocations: 0.5205 MB / 433.3 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005459/0.08909, allocations: 0.5766 MB / 433.9 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003865/0.08949, allocations: 376.3 kB / 434.2 MB, free: 3.938 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.08977, allocations: 279.3 kB / 434.5 MB, free: 3.664 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003451/0.09012, allocations: 310.8 kB / 434.8 MB, free: 3.359 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.548e-05/0.0902, allocations: 52 kB / 434.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008999/0.09111, allocations: 467.3 kB / 435.3 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.09124, allocations: 119.6 kB / 435.4 MB, free: 2.734 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002209/0.09146, allocations: 278.7 kB / 435.7 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.09258, allocations: 1.035 MB / 436.7 MB, free: 1.422 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.09259, allocations: 4 kB / 436.7 MB, free: 1.418 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.09259, allocations: 0 / 436.7 MB, free: 1.418 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.006e-06/0.09261, allocations: 0 / 436.7 MB, free: 1.418 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.001213/0.09383, allocations: 0.8537 MB / 437.6 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.09387, allocations: 12.03 kB / 437.6 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.123e-05/0.09395, allocations: 86.7 kB / 437.7 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003191/0.09428, allocations: 96 kB / 437.8 MB, free: 324 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1315/0.2258, allocations: 350.4 kB / 438.1 MB, free: 53.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.2258, allocations: 34.31 kB / 438.2 MB, free: 53.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.655e-05/0.2259, allocations: 51 kB / 438.2 MB, free: 53.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006315/0.2266, allocations: 452 kB / 438.6 MB, free: 53.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.2266, allocations: 1.219 kB / 438.6 MB, free: 53.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.2266, allocations: 18.09 kB / 438.7 MB, free: 53.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.2266, allocations: 11.72 kB / 438.7 MB, free: 53.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006113/0.2273, allocations: 0.5183 MB / 439.2 MB, free: 53.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.2291, allocations: 1.542 MB / 440.7 MB, free: 52.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005789/0.2297, allocations: 364.8 kB / 441.1 MB, free: 52.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.2298, allocations: 121.4 kB / 441.2 MB, free: 52.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001564/0.2314, allocations: 1.57 MB / 442.8 MB, free: 51.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.208e-05/0.2314, allocations: 34.5 kB / 442.8 MB, free: 51.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 2.094e-06/0.2314, allocations: 2.953 kB / 442.8 MB, free: 51.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01205/0.2435, allocations: 2.34 MB / 445.2 MB, free: 50.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.856e-05/0.2435, allocations: 54.5 kB / 445.2 MB, free: 50.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.2437, allocations: 291.5 kB / 445.5 MB, free: 50.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.2438, allocations: 28.77 kB / 445.5 MB, free: 50.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.226e-05/0.2438, allocations: 278.5 kB / 445.8 MB, free: 50.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.69e-05/0.2439, allocations: 112 kB / 445.9 MB, free: 50.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.988e-05/0.244, allocations: 88.77 kB / 446 MB, free: 50.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.596e-05/0.2441, allocations: 341.2 kB / 446.3 MB, free: 50.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.2442, allocations: 137 kB / 446.5 MB, free: 50.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.2445, allocations: 258.5 kB / 446.7 MB, free: 50.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.2449, allocations: 430.7 kB / 447.1 MB, free: 49.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2449, allocations: 3.062 kB / 447.1 MB, free: 49.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003316/0.2482, allocations: 0.8218 MB / 448 MB, free: 49.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2482, allocations: 14.3 kB / 448 MB, free: 49.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.2483, allocations: 3.031 kB / 448 MB, free: 49.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003028/0.2513, allocations: 415.4 kB / 448.4 MB, free: 49.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.2515, allocations: 77.53 kB / 448.5 MB, free: 49.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004792/0.2563, allocations: 3.969 MB / 452.4 MB, free: 46.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002824/0.2566, allocations: 17.22 kB / 452.4 MB, free: 46.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.2566, allocations: 23.7 kB / 452.5 MB, free: 46.19 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.0001362/0.2568, allocations: 171.6 kB / 452.6 MB, free: 46.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.105e-05/0.2569, allocations: 36.94 kB / 452.7 MB, free: 46.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004095/0.261, allocations: 0.8357 MB / 453.5 MB, free: 45.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.261, allocations: 5.719 kB / 453.5 MB, free: 45.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.261, allocations: 0.625 kB / 453.5 MB, free: 45.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.261, allocations: 3.328 kB / 453.5 MB, free: 45.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004905/0.2615, allocations: 0.6359 MB / 454.2 MB, free: 45.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.2615, allocations: 0 / 454.2 MB, free: 45.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.2616, allocations: 49.2 kB / 454.2 MB, free: 45.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003849/0.2655, allocations: 496.7 kB / 454.7 MB, free: 45.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.625e-05/0.2655, allocations: 13.61 kB / 454.7 MB, free: 45.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005062/0.2706, allocations: 5.309 MB / 460 MB, free: 40.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.2706, allocations: 10.8 kB / 460 MB, free: 40.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004155/0.2748, allocations: 1.129 MB / 461.1 MB, free: 39.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.914e-05/0.2748, allocations: 105.9 kB / 461.2 MB, free: 39.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.894e-05/0.2749, allocations: 9.688 kB / 461.3 MB, free: 39.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.2752, allocations: 15.12 kB / 461.3 MB, free: 39.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.711e-05/0.2753, allocations: 46.22 kB / 461.3 MB, free: 39.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.458e-05/0.2753, allocations: 16.72 kB / 461.3 MB, free: 39.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001238/0.2754, allocations: 202.4 kB / 461.5 MB, free: 39.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2754, allocations: 1.219 kB / 461.5 MB, free: 39.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000595/0.276, allocations: 235.1 kB / 461.8 MB, free: 39.67 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.004506/0.2805, allocations: 1.849 MB / 463.6 MB, free: 38.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009885/0.2815, allocations: 0.7044 MB / 464.3 MB, free: 38.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2815, allocations: 0 / 464.3 MB, free: 38.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006444/0.2822, allocations: 0.6217 MB / 464.9 MB, free: 37.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.2827, allocations: 103.6 kB / 465 MB, free: 37.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008755/0.2915, allocations: 4.617 MB / 469.7 MB, free: 34.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001795/0.2917, allocations: 0.8342 MB / 470.5 MB, free: 34.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002356/0.2919, allocations: 73.77 kB / 470.6 MB, free: 34.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.2921, allocations: 173.6 kB / 470.7 MB, free: 34.11 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2921, allocations: 0 / 470.7 MB, free: 34.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05481/0.3469, allocations: 15.13 MB / 485.9 MB, free: 30.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/10.45, allocations: 19.86 kB / 485.9 MB, free: 30.93 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)