Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009822/0.0009822, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.737/1.737, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009007/0.0009008, allocations: 98.31 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.735e-05/2.736e-05, allocations: 7.984 kB / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1636, allocations: 51.48 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4279/0.5916, allocations: 79.39 MB / 474.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/0.592, allocations: 70.78 kB / 474.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01598/0.608, allocations: 6.072 MB / 480.8 MB, free: 8.504 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.608, allocations: 0 / 480.8 MB, free: 8.504 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.6081, allocations: 8 kB / 480.8 MB, free: 8.496 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007266/0.6088, allocations: 0.5748 MB / 481.4 MB, free: 7.895 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.6089, allocations: 8.031 kB / 481.4 MB, free: 7.887 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.349e-05/0.6089, allocations: 47.53 kB / 481.4 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.6093, allocations: 286.9 kB / 481.7 MB, free: 7.551 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.993e-05/0.6094, allocations: 46.12 kB / 481.8 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.116e-05/0.6094, allocations: 15.94 kB / 481.8 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002782/0.6097, allocations: 170.7 kB / 481.9 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.6101, allocations: 263.8 kB / 482.2 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.6101, allocations: 0 / 482.2 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.6101, allocations: 0 / 482.2 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.6102, allocations: 7.172 kB / 482.2 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.6114, allocations: 0.7583 MB / 483 MB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004246/0.6118, allocations: 246.7 kB / 483.2 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.612, allocations: 97.86 kB / 483.3 MB, free: 6.277 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.149e-05/0.612, allocations: 11.98 kB / 483.3 MB, free: 6.266 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.612, allocations: 42.03 kB / 483.3 MB, free: 6.219 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.252e-06/0.612, allocations: 0 / 483.3 MB, free: 6.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005389/0.6126, allocations: 260.9 kB / 483.6 MB, free: 6.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.955e-05/0.6127, allocations: 316.1 kB / 483.9 MB, free: 5.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.6129, allocations: 239.1 kB / 484.1 MB, free: 5.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.613, allocations: 29.7 kB / 484.2 MB, free: 5.414 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.6131, allocations: 168.6 kB / 484.3 MB, free: 5.281 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.737e-05/0.6131, allocations: 104.6 kB / 484.4 MB, free: 5.191 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.347e-05/0.6132, allocations: 0 / 484.4 MB, free: 5.191 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.994e-05/0.6133, allocations: 337.7 kB / 484.8 MB, free: 4.863 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.6134, allocations: 71.62 kB / 484.8 MB, free: 4.824 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.6136, allocations: 191.5 kB / 485 MB, free: 4.641 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.6137, allocations: 93.17 kB / 485.1 MB, free: 4.582 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.6137, allocations: 4 kB / 485.1 MB, free: 4.578 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004885/0.6142, allocations: 310 kB / 485.4 MB, free: 4.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.941e-05/0.6143, allocations: 29.7 kB / 485.5 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.6143, allocations: 0 / 485.5 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002045/0.6145, allocations: 39.97 kB / 485.5 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.6155, allocations: 211 kB / 485.7 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002782/0.6183, allocations: 2.843 MB / 488.5 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.6186, allocations: 27.75 kB / 488.6 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.6187, allocations: 15.62 kB / 488.6 MB, free: 1.137 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTank1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002399/0.6189, allocations: 120.8 kB / 488.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005543/0.6195, allocations: 272.1 kB / 489 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.808e-05/0.6196, allocations: 31.62 kB / 489 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.6197, allocations: 36.64 kB / 489 MB, free: 0.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.6198, allocations: 5.781 kB / 489 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.6198, allocations: 3.953 kB / 489 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004345/0.6202, allocations: 0.6197 MB / 489.7 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004734/0.6207, allocations: 339.9 kB / 490 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.6207, allocations: 7.984 kB / 490 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/0.6222, allocations: 247.8 kB / 490.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001034/0.6223, allocations: 31.59 kB / 490.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.6224, allocations: 0 / 490.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/0.6252, allocations: 2.685 MB / 493 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.6252, allocations: 7.922 kB / 493 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008883/0.6261, allocations: 461.3 kB / 493.4 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002919/0.6264, allocations: 140.7 kB / 493.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.854e-05/0.6265, allocations: 0 / 493.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.6267, allocations: 15.89 kB / 493.6 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.33e-05/0.6268, allocations: 31.66 kB / 493.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.6269, allocations: 11.19 kB / 493.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003389/0.6272, allocations: 190.6 kB / 493.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.72e-07/0.6272, allocations: 0 / 493.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006495/0.6279, allocations: 91.94 kB / 493.9 MB, free: 11.9 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001176/0.6291, allocations: 1.015 MB / 494.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.6307, allocations: 0.5182 MB / 495.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.6307, allocations: 3.938 kB / 495.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.632, allocations: 396 kB / 495.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.6326, allocations: 77.66 kB / 495.9 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.6343, allocations: 0.7052 MB / 496.6 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.6347, allocations: 0.783 MB / 497.4 MB, free: 8.578 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001629/0.6349, allocations: 35.27 kB / 497.4 MB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.635, allocations: 108.1 kB / 497.5 MB, free: 8.508 MB / 362.7 MB Notification: Performance of SimCode: time 7.41e-07/0.635, allocations: 0 / 497.5 MB, free: 8.508 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03261/0.6677, allocations: 7.654 MB / 0.4933 GB, free: 1.016 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002384/0.668, allocations: 138.5 kB / 0.4935 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.745, allocations: 96 / 0.4935 GB, free: 0.8281 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat