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.0007423/0.0007422, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.004873/0.004873, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.289/1.289, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1725/0.1725, allocations: 15.28 MB / 306.7 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003291/0.0003291, allocations: 8 kB / 372.2 MB, free: 3.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2586, allocations: 54.62 MB / 426.8 MB, free: 40.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.003089/0.2618, allocations: 3.386 MB / 430.2 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004115/0.2659, allocations: 4.69 MB / 434.9 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002265/0.2662, allocations: 10.06 kB / 434.9 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.2665, allocations: 90.97 kB / 435 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007534/0.2672, allocations: 393.9 kB / 435.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.2683, allocations: 471.3 kB / 435.8 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005832/0.2689, allocations: 0.5569 MB / 436.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003203/0.2692, allocations: 299.9 kB / 436.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002208/0.2694, allocations: 269.9 kB / 436.9 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.2697, allocations: 279.1 kB / 437.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.2697, allocations: 25.06 kB / 437.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008072/0.2706, allocations: 449 kB / 437.7 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.2707, allocations: 99.41 kB / 437.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002272/0.2709, allocations: 271.1 kB / 438 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009625/0.2719, allocations: 0.9714 MB / 439 MB, free: 35.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2719, allocations: 3.938 kB / 439 MB, free: 35.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2719, allocations: 0 / 439 MB, free: 35.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.2719, allocations: 0 / 439 MB, free: 35.61 MB / 350.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.001069/0.273, allocations: 0.7587 MB / 439.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.273, allocations: 12.94 kB / 439.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.947e-05/0.2731, allocations: 83.5 kB / 439.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003148/0.2734, allocations: 95.66 kB / 440 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.2738, allocations: 346.5 kB / 440.3 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.2738, allocations: 41.19 kB / 440.3 MB, free: 34.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.146e-05/0.2739, allocations: 46.16 kB / 440.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006262/0.2746, allocations: 453.5 kB / 440.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.2746, allocations: 0 / 440.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.148e-05/0.2746, allocations: 23.17 kB / 440.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.2746, allocations: 16.84 kB / 440.9 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006772/0.2753, allocations: 0.5086 MB / 441.4 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.2771, allocations: 1.534 MB / 442.9 MB, free: 33.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006276/0.2778, allocations: 368 kB / 443.3 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.278, allocations: 126.2 kB / 443.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001667/0.2796, allocations: 1.543 MB / 444.9 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.2797, allocations: 41.62 kB / 445 MB, free: 31.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.984e-06/0.2797, allocations: 0 / 445 MB, free: 31.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0147/0.2944, allocations: 2.381 MB / 447.4 MB, free: 30.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.2945, allocations: 54.62 kB / 447.4 MB, free: 30.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003345/0.2948, allocations: 301.3 kB / 447.7 MB, free: 30.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.136e-05/0.2948, allocations: 32.83 kB / 447.7 MB, free: 30.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.295, allocations: 269.3 kB / 448 MB, free: 30.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.495e-05/0.295, allocations: 109.4 kB / 448.1 MB, free: 30.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.361e-05/0.2951, allocations: 41.72 kB / 448.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.616e-05/0.2952, allocations: 343.1 kB / 448.5 MB, free: 29.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.2954, allocations: 135 kB / 448.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.2956, allocations: 267.3 kB / 448.9 MB, free: 29.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004806/0.2961, allocations: 426.2 kB / 449.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2961, allocations: 0 / 449.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004252/0.3004, allocations: 0.8341 MB / 450.1 MB, free: 28.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.3004, allocations: 10.75 kB / 450.1 MB, free: 28.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.3005, allocations: 6.031 kB / 450.1 MB, free: 28.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003661/0.3041, allocations: 426.1 kB / 450.6 MB, free: 28.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002686/0.3044, allocations: 75.61 kB / 450.6 MB, free: 28.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005723/0.3101, allocations: 3.744 MB / 454.4 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004405/0.3106, allocations: 35.02 kB / 454.4 MB, free: 25.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.259e-05/0.3107, allocations: 15.25 kB / 454.4 MB, free: 25.69 MB / 350.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.0002376/0.3109, allocations: 175.8 kB / 454.6 MB, free: 25.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.631e-05/0.311, allocations: 35.16 kB / 454.6 MB, free: 25.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005065/0.3161, allocations: 0.8492 MB / 455.5 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.3161, allocations: 3.031 kB / 455.5 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3161, allocations: 0 / 455.5 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.3161, allocations: 3.234 kB / 455.5 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000698/0.3168, allocations: 0.6235 MB / 456.1 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3168, allocations: 3 kB / 456.1 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.317, allocations: 60.95 kB / 456.2 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004744/0.3218, allocations: 0.5021 MB / 456.7 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.3218, allocations: 9.938 kB / 456.7 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005951/0.3278, allocations: 4.95 MB / 461.6 MB, free: 20.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3278, allocations: 0 / 461.6 MB, free: 20.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005303/0.3331, allocations: 1.138 MB / 462.8 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.3333, allocations: 117.3 kB / 462.9 MB, free: 19.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.335e-05/0.3333, allocations: 9.562 kB / 462.9 MB, free: 19.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000308/0.3337, allocations: 13.8 kB / 462.9 MB, free: 19.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.3338, allocations: 45.81 kB / 463 MB, free: 19.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-05/0.3338, allocations: 17.81 kB / 463 MB, free: 19.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.3341, allocations: 204.6 kB / 463.2 MB, free: 19.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3341, allocations: 1.188 kB / 463.2 MB, free: 19.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009387/0.335, allocations: 242.4 kB / 463.4 MB, free: 19.38 MB / 350.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.006115/0.3412, allocations: 1.868 MB / 465.3 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.3425, allocations: 0.6804 MB / 466 MB, free: 17.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3425, allocations: 0 / 466 MB, free: 17.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009138/0.3434, allocations: 0.6169 MB / 466.6 MB, free: 17.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000847/0.3443, allocations: 101.6 kB / 466.7 MB, free: 17.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.3567, allocations: 4.918 MB / 471.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.3572, allocations: 0.8256 MB / 472.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004018/0.3576, allocations: 80.94 kB / 472.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002641/0.3579, allocations: 171 kB / 472.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3579, allocations: 0 / 472.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07552/0.4334, allocations: 14.51 MB / 487.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001374/0.4336, allocations: 213.8 kB / 487.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.104/2.537, allocations: 0 / 487.4 MB, free: 7.648 MB / 350.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)