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.001211/0.001211, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001093/0.001094, allocations: 191.8 kB / 16.25 MB, free: 6.59 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.256/1.256, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1861/0.1861, allocations: 15.32 MB / 305.4 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 63.91 kB / 369.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0896/0.09084, allocations: 53.61 MB / 423.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.00441/0.09529, allocations: 3.748 MB / 427.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004863/0.1002, allocations: 4.709 MB / 432 MB, free: 6.023 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003635/0.1006, allocations: 15.88 kB / 432 MB, free: 6.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004003/0.101, allocations: 91.36 kB / 432.1 MB, free: 5.918 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.102, allocations: 405.7 kB / 432.5 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.1031, allocations: 481.6 kB / 433 MB, free: 5.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005907/0.1037, allocations: 0.5727 MB / 433.5 MB, free: 4.473 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003776/0.104, allocations: 368.3 kB / 433.9 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002886/0.1043, allocations: 295.1 kB / 434.2 MB, free: 3.816 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003188/0.1047, allocations: 310.8 kB / 434.5 MB, free: 3.512 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.334e-05/0.1047, allocations: 56 kB / 434.6 MB, free: 3.457 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009086/0.1057, allocations: 475.2 kB / 435 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.1058, allocations: 135.5 kB / 435.1 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002054/0.106, allocations: 274.8 kB / 435.4 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.1071, allocations: 1 MB / 436.4 MB, free: 1.586 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1071, allocations: 4 kB / 436.4 MB, free: 1.582 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1071, allocations: 0 / 436.4 MB, free: 1.582 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.1071, allocations: 0 / 436.4 MB, free: 1.582 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.001265/0.1084, allocations: 0.8537 MB / 437.3 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.1084, allocations: 8.031 kB / 437.3 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.423e-05/0.1086, allocations: 90.7 kB / 437.4 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003337/0.1089, allocations: 92 kB / 437.5 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003824/0.1093, allocations: 358.4 kB / 437.8 MB, free: 96 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.1093, allocations: 37.31 kB / 437.8 MB, free: 60 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-05/0.1094, allocations: 56.22 kB / 437.9 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1768/0.2862, allocations: 457.5 kB / 438.3 MB, free: 53.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.2862, allocations: 3.094 kB / 438.4 MB, free: 53.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.489e-05/0.2863, allocations: 18.59 kB / 438.4 MB, free: 53.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.2863, allocations: 12 kB / 438.4 MB, free: 53.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006809/0.287, allocations: 0.5023 MB / 438.9 MB, free: 53.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.289, allocations: 1.537 MB / 440.4 MB, free: 53.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006425/0.2897, allocations: 363.5 kB / 440.8 MB, free: 53.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.2898, allocations: 119 kB / 440.9 MB, free: 53.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001738/0.2916, allocations: 1.572 MB / 442.5 MB, free: 52.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.688e-05/0.2916, allocations: 38.16 kB / 442.5 MB, free: 52.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.683e-06/0.2916, allocations: 0 / 442.5 MB, free: 52.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01465/0.3063, allocations: 2.341 MB / 444.8 MB, free: 51.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/0.3063, allocations: 58.56 kB / 444.9 MB, free: 51.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003162/0.3067, allocations: 294 kB / 445.2 MB, free: 51.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.3067, allocations: 29.08 kB / 445.2 MB, free: 51.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.3068, allocations: 275.5 kB / 445.5 MB, free: 51.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.558e-05/0.3069, allocations: 111 kB / 445.6 MB, free: 50.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.307, allocations: 86.38 kB / 445.7 MB, free: 50.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.444e-05/0.3071, allocations: 346.7 kB / 446 MB, free: 50.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.3073, allocations: 136.8 kB / 446.1 MB, free: 50.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.3076, allocations: 264.5 kB / 446.4 MB, free: 50.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000491/0.3081, allocations: 430.2 kB / 446.8 MB, free: 50.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3081, allocations: 0 / 446.8 MB, free: 50.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003933/0.312, allocations: 0.8226 MB / 447.7 MB, free: 50.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3121, allocations: 9.062 kB / 447.7 MB, free: 50.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3121, allocations: 6.688 kB / 447.7 MB, free: 50.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003529/0.3156, allocations: 414.5 kB / 448.1 MB, free: 49.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.3159, allocations: 76.09 kB / 448.1 MB, free: 49.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/0.3212, allocations: 3.984 MB / 452.1 MB, free: 46.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003855/0.3216, allocations: 34.27 kB / 452.2 MB, free: 46.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.033e-05/0.3216, allocations: 18.94 kB / 452.2 MB, free: 46.62 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.0001871/0.3218, allocations: 178.9 kB / 452.4 MB, free: 46.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.586e-05/0.3219, allocations: 31 kB / 452.4 MB, free: 46.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004772/0.3267, allocations: 0.8285 MB / 453.2 MB, free: 46.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3267, allocations: 6.625 kB / 453.2 MB, free: 46.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3267, allocations: 0 / 453.2 MB, free: 46.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3267, allocations: 3.375 kB / 453.2 MB, free: 46.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006016/0.3273, allocations: 0.6287 MB / 453.9 MB, free: 45.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.3274, allocations: 9.734 kB / 453.9 MB, free: 45.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.3275, allocations: 50.97 kB / 453.9 MB, free: 45.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004395/0.3319, allocations: 488.5 kB / 454.4 MB, free: 45.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-05/0.332, allocations: 17.81 kB / 454.4 MB, free: 45.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005718/0.3377, allocations: 5.307 MB / 459.7 MB, free: 40.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3377, allocations: 7.344 kB / 459.7 MB, free: 40.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005007/0.3427, allocations: 1.129 MB / 460.8 MB, free: 40.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.501e-05/0.3428, allocations: 116.5 kB / 461 MB, free: 40.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.3429, allocations: 7.156 kB / 461 MB, free: 40.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.3432, allocations: 20.28 kB / 461 MB, free: 40.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.822e-05/0.3433, allocations: 43.28 kB / 461 MB, free: 40.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/0.3434, allocations: 21.16 kB / 461.1 MB, free: 40.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001567/0.3435, allocations: 201 kB / 461.2 MB, free: 40.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3435, allocations: 0 / 461.2 MB, free: 40.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000727/0.3443, allocations: 242.2 kB / 461.5 MB, free: 40.1 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.005461/0.3497, allocations: 1.836 MB / 463.3 MB, free: 39.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.3509, allocations: 0.7003 MB / 464 MB, free: 38.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3509, allocations: 6.625 kB / 464 MB, free: 38.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007048/0.3516, allocations: 0.6152 MB / 464.6 MB, free: 38.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006334/0.3522, allocations: 111.5 kB / 464.8 MB, free: 38.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.363, allocations: 4.803 MB / 469.6 MB, free: 35.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.3633, allocations: 0.8349 MB / 470.4 MB, free: 34.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003088/0.3636, allocations: 73.41 kB / 470.5 MB, free: 34.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.3638, allocations: 173.8 kB / 470.6 MB, free: 34.35 MB / 366.1 MB Notification: Performance of SimCode: time 1.773e-06/0.3638, allocations: 0 / 470.6 MB, free: 34.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05144/0.4153, allocations: 15.08 MB / 485.7 MB, free: 31.38 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002012/0.4155, allocations: 204 kB / 485.9 MB, free: 31.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.079/2.494, allocations: 0 / 485.9 MB, free: 31.13 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)