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.005485/0.005484, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001146/0.001146, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2261/0.2261, allocations: 15.31 MB / 305.9 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2855, allocations: 53.6 MB / 478.3 MB, free: 25.58 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.006121/0.2917, allocations: 3.438 MB / 481.7 MB, free: 23.13 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007455/0.2992, allocations: 4.728 MB / 486.5 MB, free: 19.69 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006219/0.2999, allocations: 8.312 kB / 486.5 MB, free: 19.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005472/0.3005, allocations: 113.5 kB / 486.6 MB, free: 19.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001619/0.3021, allocations: 451.1 kB / 487 MB, free: 19.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002025/0.3042, allocations: 0.5265 MB / 487.5 MB, free: 18.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009858/0.3052, allocations: 0.5859 MB / 488.1 MB, free: 18.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005777/0.3058, allocations: 369.5 kB / 488.5 MB, free: 18.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004549/0.3063, allocations: 289.5 kB / 488.8 MB, free: 18.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005844/0.3069, allocations: 306.3 kB / 489.1 MB, free: 17.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.307, allocations: 52 kB / 489.1 MB, free: 17.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001987/0.309, allocations: 476.9 kB / 489.6 MB, free: 17.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.3092, allocations: 123.2 kB / 489.7 MB, free: 17.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003491/0.3096, allocations: 275 kB / 490 MB, free: 17.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002617/0.3122, allocations: 1.051 MB / 491 MB, free: 16.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.3122, allocations: 0 / 491 MB, free: 16.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3122, allocations: 3.938 kB / 491 MB, free: 16.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.3123, allocations: 1.031 kB / 491 MB, free: 16.81 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.002314/0.3146, allocations: 0.8587 MB / 491.9 MB, free: 16.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.071e-05/0.3147, allocations: 10.38 kB / 491.9 MB, free: 16.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001248/0.3148, allocations: 84.83 kB / 492 MB, free: 16.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006791/0.3155, allocations: 88.88 kB / 492.1 MB, free: 16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008503/0.3164, allocations: 368.5 kB / 492.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.3165, allocations: 37 kB / 492.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.3166, allocations: 47.34 kB / 492.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.3178, allocations: 456.1 kB / 493 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.3179, allocations: 0 / 493 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.117e-05/0.318, allocations: 21.12 kB / 493 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.318, allocations: 10.5 kB / 493 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.3194, allocations: 0.5072 MB / 493.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003618/0.323, allocations: 1.536 MB / 495 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.3243, allocations: 371.8 kB / 495.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.3246, allocations: 124.3 kB / 495.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003286/0.3279, allocations: 1.562 MB / 497.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.328, allocations: 32.66 kB / 497.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 2.755e-06/0.328, allocations: 0 / 497.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.02457/0.3526, allocations: 2.349 MB / 499.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.3526, allocations: 54.84 kB / 499.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005135/0.3532, allocations: 296.7 kB / 499.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.064e-05/0.3532, allocations: 30.92 kB / 499.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001758/0.3534, allocations: 270.8 kB / 0.4884 GB, free: 10.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.3536, allocations: 115.7 kB / 0.4885 GB, free: 10.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.3538, allocations: 79.88 kB / 0.4886 GB, free: 10.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.164e-05/0.3539, allocations: 345.9 kB / 0.4889 GB, free: 9.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003974/0.3543, allocations: 135 kB / 0.489 GB, free: 9.613 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004762/0.3548, allocations: 264.8 kB / 0.4893 GB, free: 9.375 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009371/0.3558, allocations: 422.9 kB / 0.4897 GB, free: 9.059 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3558, allocations: 1.375 kB / 0.4897 GB, free: 9.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.006832/0.3626, allocations: 0.8216 MB / 0.4905 GB, free: 8.609 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.3627, allocations: 7 kB / 0.4905 GB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.3627, allocations: 4.406 kB / 0.4905 GB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005806/0.3685, allocations: 419 kB / 0.4909 GB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.3691, allocations: 73.56 kB / 0.491 GB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009573/0.3787, allocations: 3.978 MB / 0.4948 GB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007335/0.3795, allocations: 21.03 kB / 0.4949 GB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.001e-05/0.3796, allocations: 24.72 kB / 0.4949 GB, free: 4.785 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.0003578/0.3799, allocations: 170.8 kB / 0.4951 GB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.3801, allocations: 36.03 kB / 0.4951 GB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006251/0.3864, allocations: 0.8268 MB / 0.4959 GB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.3864, allocations: 6.672 kB / 0.4959 GB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.3865, allocations: 1.406 kB / 0.4959 GB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.3865, allocations: 96 / 0.4959 GB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008419/0.3873, allocations: 0.6221 MB / 0.4965 GB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.3873, allocations: 7.984 kB / 0.4965 GB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.3875, allocations: 47.92 kB / 0.4966 GB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004539/0.3921, allocations: 486.2 kB / 0.497 GB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.935e-05/0.3921, allocations: 19.94 kB / 0.497 GB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0069/0.399, allocations: 5.311 MB / 0.5022 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.3991, allocations: 4 kB / 0.5022 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005376/0.4045, allocations: 1.118 MB / 0.5033 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.4047, allocations: 120.6 kB / 0.5034 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.299e-05/0.4048, allocations: 8 kB / 0.5035 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.4051, allocations: 12 kB / 0.5035 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.4053, allocations: 47.94 kB / 0.5035 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.387e-05/0.4053, allocations: 16 kB / 0.5035 GB, free: 11.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002677/0.4056, allocations: 203.2 kB / 0.5037 GB, free: 11.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4056, allocations: 3.938 kB / 0.5037 GB, free: 11.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001048/0.4067, allocations: 235.9 kB / 0.5039 GB, free: 11.31 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.006122/0.4128, allocations: 1.845 MB / 0.5057 GB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.4144, allocations: 0.6893 MB / 0.5064 GB, free: 8.688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4144, allocations: 0 / 0.5064 GB, free: 8.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.4155, allocations: 0.6213 MB / 0.507 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007732/0.4162, allocations: 121.5 kB / 0.5071 GB, free: 7.914 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01228/0.4285, allocations: 4.583 MB / 0.5116 GB, free: 3.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004865/0.4291, allocations: 0.8313 MB / 0.5124 GB, free: 2.215 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003028/0.4294, allocations: 67.22 kB / 0.5125 GB, free: 2.145 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/0.4297, allocations: 175.3 kB / 0.5127 GB, free: 1.977 MB / 382.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4297, allocations: 0 / 0.5127 GB, free: 1.977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06055/0.4903, allocations: 15.32 MB / 0.5276 GB, free: 2.809 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.8, allocations: 10.67 kB / 0.5276 GB, free: 2.801 MB / 398.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)