Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json 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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008628/0.0008629, allocations: 96.95 kB / 281.2 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.004e-05/2.016e-05, allocations: 4 kB / 337.1 MB, free: 9.957 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 50.42 MB / 387.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8821/0.9884, allocations: 320.8 MB / 0.6918 GB, free: 7.871 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.9887, allocations: 79.02 kB / 0.6918 GB, free: 7.832 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5859/1.575, allocations: 133.5 MB / 0.8222 GB, free: 73.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.449e-06/1.575, allocations: 0 / 0.8222 GB, free: 73.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.614e-05/1.575, allocations: 19.94 kB / 0.8222 GB, free: 73.55 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003384/1.578, allocations: 1.082 MB / 0.8233 GB, free: 72.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.042e-05/1.578, allocations: 12.02 kB / 0.8233 GB, free: 72.42 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003437/1.579, allocations: 98.95 kB / 0.8234 GB, free: 72.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/1.58, allocations: 0.6632 MB / 0.824 GB, free: 71.62 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.156e-05/1.58, allocations: 84.72 kB / 0.8241 GB, free: 71.53 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.878e-05/1.58, allocations: 32 kB / 0.8241 GB, free: 71.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001093/1.581, allocations: 0.7444 MB / 0.8248 GB, free: 70.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/1.582, allocations: 0.8009 MB / 0.8256 GB, free: 69.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/1.582, allocations: 4 kB / 0.8256 GB, free: 69.92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.162e-05/1.582, allocations: 0 / 0.8256 GB, free: 69.92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.97e-05/1.583, allocations: 57.27 kB / 0.8257 GB, free: 69.87 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00485/1.587, allocations: 3.151 MB / 0.8288 GB, free: 66.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007047/1.588, allocations: 0.617 MB / 0.8294 GB, free: 65.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003857/1.589, allocations: 346.4 kB / 0.8297 GB, free: 65.64 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002332/1.591, allocations: 2.011 MB / 0.8317 GB, free: 63.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/1.591, allocations: 39.12 kB / 0.8317 GB, free: 63.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 1.924e-06/1.591, allocations: 4 kB / 0.8317 GB, free: 63.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.00611/1.597, allocations: 2.464 MB / 0.8341 GB, free: 60.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/1.597, allocations: 85.67 kB / 0.8342 GB, free: 60.78 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004811/1.598, allocations: 450.1 kB / 0.8346 GB, free: 60.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.259e-05/1.598, allocations: 25.7 kB / 0.8346 GB, free: 60.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/1.598, allocations: 351.9 kB / 0.835 GB, free: 59.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/1.598, allocations: 216.8 kB / 0.8352 GB, free: 59.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/1.598, allocations: 0 / 0.8352 GB, free: 59.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/1.598, allocations: 378.7 kB / 0.8355 GB, free: 59.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004021/1.599, allocations: 345.3 kB / 0.8359 GB, free: 59.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004734/1.599, allocations: 484.1 kB / 0.8363 GB, free: 58.49 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/1.601, allocations: 0.6757 MB / 0.837 GB, free: 57.81 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/1.601, allocations: 4 kB / 0.837 GB, free: 57.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002727/1.604, allocations: 1.344 MB / 0.8383 GB, free: 56.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003251/1.604, allocations: 1.577 MB / 0.8399 GB, free: 54.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/1.604, allocations: 7.953 kB / 0.8399 GB, free: 54.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007473/1.605, allocations: 368.5 kB / 0.8402 GB, free: 54.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000589/1.605, allocations: 159.8 kB / 0.8404 GB, free: 54.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/1.607, allocations: 1.219 MB / 0.8416 GB, free: 52.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/1.608, allocations: 31.95 kB / 0.8416 GB, free: 52.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.976e-05/1.608, allocations: 31.98 kB / 0.8416 GB, free: 52.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/1.608, allocations: 4 kB / 0.8416 GB, free: 52.92 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002491/1.61, allocations: 1.175 MB / 0.8428 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/1.61, allocations: 7.953 kB / 0.8428 GB, free: 51.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005886/1.611, allocations: 316.7 kB / 0.8431 GB, free: 51.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006026/1.612, allocations: 159.8 kB / 0.8432 GB, free: 51.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/1.613, allocations: 1.067 MB / 0.8443 GB, free: 50.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005821/1.614, allocations: 35.95 kB / 0.8443 GB, free: 50.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.501e-05/1.614, allocations: 31.98 kB / 0.8443 GB, free: 50.11 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002191/1.614, allocations: 130.8 kB / 0.8445 GB, free: 49.98 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002195/1.616, allocations: 1.045 MB / 0.8455 GB, free: 48.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/1.616, allocations: 67.25 kB / 0.8455 GB, free: 48.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002578/1.619, allocations: 1.191 MB / 0.8467 GB, free: 47.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/1.619, allocations: 8 kB / 0.8467 GB, free: 47.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/1.619, allocations: 0 / 0.8467 GB, free: 47.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/1.619, allocations: 3.984 kB / 0.8467 GB, free: 47.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003905/1.623, allocations: 2.029 MB / 0.8487 GB, free: 45.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/1.623, allocations: 0 / 0.8487 GB, free: 45.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005449/1.623, allocations: 119.8 kB / 0.8488 GB, free: 45.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007736/1.624, allocations: 373.4 kB / 0.8492 GB, free: 45.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/1.624, allocations: 15.92 kB / 0.8492 GB, free: 45.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001821/1.626, allocations: 1.205 MB / 0.8504 GB, free: 43.85 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/1.626, allocations: 4 kB / 0.8504 GB, free: 43.84 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00275/1.629, allocations: 1.692 MB / 0.852 GB, free: 42.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003576/1.629, allocations: 236.2 kB / 0.8522 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/1.629, allocations: 8 kB / 0.8523 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005319/1.63, allocations: 31.95 kB / 0.8523 GB, free: 41.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/1.63, allocations: 52.7 kB / 0.8523 GB, free: 41.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.324e-05/1.63, allocations: 35.97 kB / 0.8524 GB, free: 41.75 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003755/1.63, allocations: 338.9 kB / 0.8527 GB, free: 41.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.63, allocations: 0 / 0.8527 GB, free: 41.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00202/1.632, allocations: 0.5931 MB / 0.8533 GB, free: 40.83 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004194/1.637, allocations: 2.708 MB / 0.8559 GB, free: 38.13 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00226/1.639, allocations: 1.315 MB / 0.8572 GB, free: 36.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/1.639, allocations: 4 kB / 0.8572 GB, free: 36.81 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007368/1.64, allocations: 444.8 kB / 0.8576 GB, free: 36.38 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/1.641, allocations: 310.2 kB / 0.8579 GB, free: 36.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003949/1.645, allocations: 1.613 MB / 0.8595 GB, free: 34.42 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004812/1.646, allocations: 1.011 MB / 0.8605 GB, free: 33.38 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001111/1.647, allocations: 323.7 kB / 0.8608 GB, free: 33.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003328/1.647, allocations: 271.3 kB / 0.8611 GB, free: 32.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.032e-06/1.647, allocations: 0 / 0.8611 GB, free: 32.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05033/1.698, allocations: 26.65 MB / 0.8871 GB, free: 6.25 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/1.698, allocations: 125.8 kB / 0.8872 GB, free: 6.059 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.263/4.961, allocations: 0 / 0.8872 GB, free: 6.059 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat