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.1037/0.1037, allocations: 15.25 MB / 27.81 MB, free: 5.406 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 184.4 kB / 32.7 MB, free: 0.5273 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.326/1.326, allocations: 221.4 MB / 258.8 MB, free: 15.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008752/0.0008753, allocations: 103.5 kB / 314 MB, free: 15.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.262e-05/2.264e-05, allocations: 0 / 376.6 MB, free: 1.328 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2872, allocations: 54.6 MB / 431.2 MB, free: 50.12 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1274/0.4146, allocations: 99.62 MB / 0.5184 GB, free: 15.65 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/0.4149, allocations: 65.56 kB / 0.5184 GB, free: 15.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0463/0.4612, allocations: 15.53 MB / 0.5336 GB, free: 156 kB / 394.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4612, allocations: 0 / 0.5336 GB, free: 156 kB / 394.7 MB Notification: Performance of Transformations before backend: time 2.742e-05/0.4613, allocations: 8 kB / 0.5336 GB, free: 148 kB / 394.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.001702/0.463, allocations: 0.7322 MB / 0.5343 GB, free: 15.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.463, allocations: 8.031 kB / 0.5343 GB, free: 15.36 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000133/0.4632, allocations: 90.52 kB / 0.5344 GB, free: 15.26 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004836/0.4637, allocations: 105.1 kB / 0.5345 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008356/0.4645, allocations: 386.8 kB / 0.5349 GB, free: 14.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.059e-05/0.4646, allocations: 36.95 kB / 0.5349 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.4647, allocations: 48 kB / 0.535 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.4661, allocations: 0.5961 MB / 0.5355 GB, free: 14.06 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.4661, allocations: 0 / 0.5355 GB, free: 14.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-05/0.4662, allocations: 23.94 kB / 0.5356 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.891e-05/0.4662, allocations: 12 kB / 0.5356 GB, free: 14.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.4678, allocations: 0.7927 MB / 0.5363 GB, free: 13.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003942/0.4717, allocations: 1.915 MB / 0.5382 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.473, allocations: 0.5509 MB / 0.5388 GB, free: 10.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004353/0.4734, allocations: 237.3 kB / 0.539 GB, free: 10.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002011/0.4736, allocations: 83.69 kB / 0.5391 GB, free: 10.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.4737, allocations: 38.56 kB / 0.5391 GB, free: 10.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 2.525e-06/0.4737, allocations: 0 / 0.5391 GB, free: 10.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=50): time 0.0266/0.5003, allocations: 3.53 MB / 0.5425 GB, free: 6.699 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01017/0.5105, allocations: 3.946 MB / 0.5464 GB, free: 2.445 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005579/0.5112, allocations: 271.4 kB / 0.5467 GB, free: 2.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.5113, allocations: 33.7 kB / 0.5467 GB, free: 2.141 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.5116, allocations: 252.7 kB / 0.5469 GB, free: 1.891 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003088/0.5119, allocations: 165.5 kB / 0.5471 GB, free: 1.727 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.54e-05/0.512, allocations: 12 kB / 0.5471 GB, free: 1.715 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.5122, allocations: 346.8 kB / 0.5474 GB, free: 1.367 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008212/0.513, allocations: 357 kB / 0.5478 GB, free: 1.016 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008761/0.5139, allocations: 443.1 kB / 0.5482 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008763/0.5148, allocations: 395.1 kB / 0.5486 GB, free: 176 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.5148, allocations: 3.938 kB / 0.5486 GB, free: 172 kB / 410.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.007468/0.5223, allocations: 1.352 MB / 0.5499 GB, free: 14.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.5224, allocations: 11.94 kB / 0.5499 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.5224, allocations: 0 / 0.5499 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005668/0.5281, allocations: 0.5569 MB / 0.5504 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005902/0.5287, allocations: 94.12 kB / 0.5505 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009944/0.5387, allocations: 4.724 MB / 0.5552 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009333/0.5396, allocations: 55.92 kB / 0.5552 GB, free: 9.062 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.5398, allocations: 23.98 kB / 0.5552 GB, free: 9.039 MB / 426.7 MB 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 (53): * Single equations (assignments): 48 * 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.0002433/0.5401, allocations: 124.9 kB / 0.5553 GB, free: 8.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001759/0.5403, allocations: 43.52 kB / 0.5554 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009332/0.5496, allocations: 1.358 MB / 0.5567 GB, free: 7.488 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008784/0.5584, allocations: 1.263 MB / 0.5579 GB, free: 6.203 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.5585, allocations: 0 / 0.5579 GB, free: 6.203 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/0.5585, allocations: 7.984 kB / 0.558 GB, free: 6.195 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.5706, allocations: 2.527 MB / 0.5604 GB, free: 3.559 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.782e-05/0.5707, allocations: 7 kB / 0.5604 GB, free: 3.555 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000452/0.5711, allocations: 79.83 kB / 0.5605 GB, free: 3.477 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008225/0.5794, allocations: 0.6428 MB / 0.5611 GB, free: 2.824 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.954e-05/0.5795, allocations: 16 kB / 0.5612 GB, free: 2.809 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/0.591, allocations: 4.823 MB / 0.5659 GB, free: 13.69 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006747/0.5978, allocations: 2.076 MB / 0.5679 GB, free: 11.47 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00993/0.6078, allocations: 2.036 MB / 0.5699 GB, free: 9.277 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002732/0.6081, allocations: 120.6 kB / 0.57 GB, free: 9.141 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.518e-05/0.6082, allocations: 19.95 kB / 0.57 GB, free: 9.121 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007013/0.6089, allocations: 47.95 kB / 0.5701 GB, free: 9.074 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.6092, allocations: 52.05 kB / 0.5701 GB, free: 9.023 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-05/0.6092, allocations: 23.98 kB / 0.5701 GB, free: 9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003557/0.6096, allocations: 219.1 kB / 0.5703 GB, free: 8.785 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6096, allocations: 0 / 0.5703 GB, free: 8.785 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001572/0.6112, allocations: 315.8 kB / 0.5706 GB, free: 8.477 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (42): * Single equations (assignments): 39 * 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.01142/0.6226, allocations: 3.824 MB / 0.5744 GB, free: 4.512 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.6255, allocations: 1.09 MB / 0.5754 GB, free: 3.398 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/0.6255, allocations: 4 kB / 0.5754 GB, free: 3.395 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001728/0.6273, allocations: 0.7316 MB / 0.5762 GB, free: 2.637 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009399/0.6282, allocations: 87 kB / 0.5762 GB, free: 2.555 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.6312, allocations: 1.154 MB / 0.5774 GB, free: 1.309 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005949/0.6318, allocations: 0.8638 MB / 0.5782 GB, free: 428 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004496/0.6323, allocations: 70.55 kB / 0.5783 GB, free: 360 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/0.6327, allocations: 179.4 kB / 0.5784 GB, free: 180 kB / 442.7 MB Notification: Performance of SimCode: time 6.41e-07/0.6327, allocations: 0 / 0.5784 GB, free: 180 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3552/0.9879, allocations: 17.52 MB / 0.5956 GB, free: 121.2 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/0.9882, allocations: 178.5 kB / 0.5957 GB, free: 121 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.549/3.537, allocations: 0 / 0.5957 GB, free: 121 MB / 442.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)