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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.08256/0.08256, allocations: 15.26 MB / 22.73 MB, free: 0.9492 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009054/0.0009053, allocations: 188.9 kB / 27.52 MB, free: 6.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.232/1.232, allocations: 221.5 MB / 253.7 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008468/0.0008469, allocations: 94.45 kB / 308.7 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.595e-05/1.608e-05, allocations: 2.781 kB / 369.7 MB, free: 53.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08272/0.08275, allocations: 54.64 MB / 424.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2921/0.3748, allocations: 98.95 MB / 0.511 GB, free: 90.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001526/0.375, allocations: 69.5 kB / 0.5111 GB, free: 90.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03307/0.4081, allocations: 15.32 MB / 0.526 GB, free: 81.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.4082, allocations: 4 kB / 0.526 GB, free: 81.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.4082, allocations: 12 kB / 0.526 GB, free: 81.04 MB / 378.7 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.0008468/0.409, allocations: 0.7331 MB / 0.5268 GB, free: 80.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.4091, allocations: 12.02 kB / 0.5268 GB, free: 80.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002826/0.4094, allocations: 95.3 kB / 0.5269 GB, free: 80.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.4098, allocations: 386.4 kB / 0.5272 GB, free: 79.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.4098, allocations: 19.95 kB / 0.5272 GB, free: 79.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.142e-05/0.4099, allocations: 28 kB / 0.5273 GB, free: 79.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007093/0.4106, allocations: 0.7679 MB / 0.528 GB, free: 78.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/0.4111, allocations: 467.9 kB / 0.5285 GB, free: 78.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.4111, allocations: 0 / 0.5285 GB, free: 78.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.4112, allocations: 0 / 0.5285 GB, free: 78.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.4112, allocations: 12 kB / 0.5285 GB, free: 78.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.4131, allocations: 1.816 MB / 0.5302 GB, free: 76.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005806/0.4136, allocations: 0.5415 MB / 0.5308 GB, free: 75.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.4138, allocations: 225.3 kB / 0.531 GB, free: 75.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.403e-05/0.4139, allocations: 83.69 kB / 0.5311 GB, free: 75.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.464e-05/0.414, allocations: 38.55 kB / 0.5311 GB, free: 75.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.292e-06/0.414, allocations: 0 / 0.5311 GB, free: 75.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.01619/0.4302, allocations: 3.468 MB / 0.5345 GB, free: 72.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.738e-05/0.4302, allocations: 55.84 kB / 0.5345 GB, free: 72.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.4304, allocations: 238.2 kB / 0.5348 GB, free: 71.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.4304, allocations: 29.64 kB / 0.5348 GB, free: 71.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.215e-05/0.4305, allocations: 236.6 kB / 0.535 GB, free: 71.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.018e-05/0.4306, allocations: 165.5 kB / 0.5352 GB, free: 71.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.83e-05/0.4306, allocations: 0 / 0.5352 GB, free: 71.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.278e-05/0.4307, allocations: 346.8 kB / 0.5355 GB, free: 71.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/0.431, allocations: 349 kB / 0.5359 GB, free: 70.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.4313, allocations: 424.5 kB / 0.5363 GB, free: 70.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006761/0.432, allocations: 445.2 kB / 0.5367 GB, free: 69.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.432, allocations: 3.938 kB / 0.5367 GB, free: 69.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.004616/0.4366, allocations: 1.343 MB / 0.538 GB, free: 68.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.4367, allocations: 12 kB / 0.538 GB, free: 68.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.4367, allocations: 0 / 0.538 GB, free: 68.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003758/0.4404, allocations: 0.5487 MB / 0.5385 GB, free: 67.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.4408, allocations: 91.88 kB / 0.5386 GB, free: 67.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00548/0.4462, allocations: 4.524 MB / 0.543 GB, free: 63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.4467, allocations: 39.98 kB / 0.5431 GB, free: 62.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.498e-05/0.4468, allocations: 27.97 kB / 0.5431 GB, free: 62.93 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: liquidWater.z:DUMMY_STATE(unit = "1" protected = true ) "Charge number of ion" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 47 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 5} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001494/0.447, allocations: 125 kB / 0.5432 GB, free: 62.8 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006006/0.453, allocations: 1.395 MB / 0.5446 GB, free: 61.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.409e-05/0.4531, allocations: 35.53 kB / 0.5446 GB, free: 61.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005865/0.4589, allocations: 1.376 MB / 0.546 GB, free: 59.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0056/0.4645, allocations: 1.279 MB / 0.5472 GB, free: 58.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4646, allocations: 0 / 0.5472 GB, free: 58.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4646, allocations: 7.984 kB / 0.5472 GB, free: 58.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007023/0.4716, allocations: 2.463 MB / 0.5496 GB, free: 56.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.4716, allocations: 4.438 kB / 0.5496 GB, free: 56.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.4719, allocations: 71.91 kB / 0.5497 GB, free: 56.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005074/0.4769, allocations: 0.6422 MB / 0.5503 GB, free: 55.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.441e-05/0.477, allocations: 15.92 kB / 0.5503 GB, free: 55.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005991/0.483, allocations: 4.687 MB / 0.5549 GB, free: 50.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003796/0.4868, allocations: 2.018 MB / 0.5569 GB, free: 48.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005959/0.4928, allocations: 2.044 MB / 0.5589 GB, free: 46.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.323e-05/0.4929, allocations: 112.7 kB / 0.559 GB, free: 45.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.224e-05/0.4929, allocations: 11.92 kB / 0.559 GB, free: 45.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000413/0.4933, allocations: 27.88 kB / 0.559 GB, free: 45.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.4934, allocations: 63.88 kB / 0.5591 GB, free: 45.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.983e-05/0.4935, allocations: 23.98 kB / 0.5591 GB, free: 45.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001301/0.4936, allocations: 182 kB / 0.5593 GB, free: 45.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4936, allocations: 0 / 0.5593 GB, free: 45.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008074/0.4944, allocations: 303.9 kB / 0.5596 GB, free: 45.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 5} * Non-linear torn systems: 2 {1 1,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.006716/0.5012, allocations: 3.738 MB / 0.5632 GB, free: 41.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001404/0.5026, allocations: 1.04 MB / 0.5643 GB, free: 40.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.5026, allocations: 0 / 0.5643 GB, free: 40.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008522/0.5034, allocations: 0.691 MB / 0.5649 GB, free: 39.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.504, allocations: 100.5 kB / 0.565 GB, free: 39.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.5056, allocations: 1.068 MB / 0.5661 GB, free: 38.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.5059, allocations: 0.8638 MB / 0.5669 GB, free: 37.53 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002551/0.5062, allocations: 63.2 kB / 0.567 GB, free: 37.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/0.5064, allocations: 175.4 kB / 0.5671 GB, free: 37.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5064, allocations: 0 / 0.5671 GB, free: 37.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03417/0.5405, allocations: 16.01 MB / 0.5828 GB, free: 21.36 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001359/0.5407, allocations: 111.9 kB / 0.5829 GB, free: 21.17 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.336/2.877, allocations: 0 / 0.5829 GB, free: 21.17 MB / 378.7 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/linux/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)