Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 198.1 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.414/1.414, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009289/0.0009289, allocations: 96.33 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.062e-05/2.077e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1166, allocations: 51.48 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9116/1.028, allocations: 321.6 MB / 0.7001 GB, free: 36.91 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003376/1.029, allocations: 80.11 kB / 0.7001 GB, free: 36.88 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5939/1.623, allocations: 133.3 MB / 0.8303 GB, free: 81.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.623, allocations: 0 / 0.8303 GB, free: 81.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.87e-05/1.623, allocations: 24.38 kB / 0.8304 GB, free: 81.57 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.003099/1.626, allocations: 1.086 MB / 0.8314 GB, free: 80.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/1.626, allocations: 12.03 kB / 0.8314 GB, free: 80.44 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005593/1.627, allocations: 102.6 kB / 0.8315 GB, free: 80.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/1.628, allocations: 0.6556 MB / 0.8322 GB, free: 79.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.642e-05/1.628, allocations: 84.72 kB / 0.8322 GB, free: 79.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.893e-05/1.628, allocations: 32 kB / 0.8323 GB, free: 79.53 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001072/1.629, allocations: 0.7483 MB / 0.833 GB, free: 78.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/1.63, allocations: 0.8048 MB / 0.8338 GB, free: 77.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/1.63, allocations: 0 / 0.8338 GB, free: 77.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.271e-05/1.63, allocations: 4 kB / 0.8338 GB, free: 77.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.601e-05/1.63, allocations: 49.78 kB / 0.8338 GB, free: 77.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004611/1.635, allocations: 3.15 MB / 0.8369 GB, free: 74.65 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007529/1.636, allocations: 0.6207 MB / 0.8375 GB, free: 74.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00042/1.636, allocations: 350.4 kB / 0.8379 GB, free: 73.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002419/1.639, allocations: 2.008 MB / 0.8398 GB, free: 71.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/1.639, allocations: 47.12 kB / 0.8399 GB, free: 71.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 2.244e-06/1.639, allocations: 0 / 0.8399 GB, free: 71.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.006144/1.645, allocations: 2.464 MB / 0.8423 GB, free: 68.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/1.645, allocations: 81.67 kB / 0.8424 GB, free: 68.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000468/1.645, allocations: 450.1 kB / 0.8428 GB, free: 68.37 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.615e-05/1.645, allocations: 25.7 kB / 0.8428 GB, free: 68.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/1.646, allocations: 355.9 kB / 0.8431 GB, free: 67.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/1.646, allocations: 220.7 kB / 0.8434 GB, free: 67.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/1.646, allocations: 0 / 0.8434 GB, free: 67.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.936e-05/1.646, allocations: 382.7 kB / 0.8437 GB, free: 67.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/1.646, allocations: 337.4 kB / 0.844 GB, free: 67.06 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/1.647, allocations: 488.1 kB / 0.8445 GB, free: 66.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002166/1.649, allocations: 0.7186 MB / 0.8452 GB, free: 65.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/1.649, allocations: 4 kB / 0.8452 GB, free: 65.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00303/1.652, allocations: 1.394 MB / 0.8466 GB, free: 64.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003/1.652, allocations: 1.58 MB / 0.8481 GB, free: 62.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/1.652, allocations: 6.812 kB / 0.8481 GB, free: 62.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007263/1.653, allocations: 375 kB / 0.8485 GB, free: 62.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006005/1.654, allocations: 155.8 kB / 0.8486 GB, free: 62.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/1.655, allocations: 1.213 MB / 0.8498 GB, free: 60.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006817/1.656, allocations: 35.95 kB / 0.8498 GB, free: 60.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/1.656, allocations: 35.98 kB / 0.8499 GB, free: 60.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/1.656, allocations: 4 kB / 0.8499 GB, free: 60.86 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002877/1.659, allocations: 1.229 MB / 0.8511 GB, free: 59.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/1.659, allocations: 4 kB / 0.8511 GB, free: 59.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006058/1.66, allocations: 316.7 kB / 0.8514 GB, free: 59.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005762/1.66, allocations: 159.8 kB / 0.8515 GB, free: 59.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/1.662, allocations: 1.071 MB / 0.8526 GB, free: 58.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005598/1.662, allocations: 28.02 kB / 0.8526 GB, free: 58.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.758e-05/1.662, allocations: 35.98 kB / 0.8527 GB, free: 58 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.0002485/1.663, allocations: 124.8 kB / 0.8528 GB, free: 57.87 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002216/1.665, allocations: 1.049 MB / 0.8538 GB, free: 56.81 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/1.665, allocations: 75.17 kB / 0.8539 GB, free: 56.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002459/1.667, allocations: 1.178 MB / 0.855 GB, free: 55.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/1.667, allocations: 12 kB / 0.855 GB, free: 55.53 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.667, allocations: 0 / 0.855 GB, free: 55.53 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/1.667, allocations: 7.938 kB / 0.855 GB, free: 55.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/1.671, allocations: 2.025 MB / 0.857 GB, free: 53.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/1.671, allocations: 0 / 0.857 GB, free: 53.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005224/1.671, allocations: 123.8 kB / 0.8571 GB, free: 53.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007368/1.672, allocations: 364.6 kB / 0.8575 GB, free: 52.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/1.672, allocations: 7.984 kB / 0.8575 GB, free: 52.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001628/1.674, allocations: 1.218 MB / 0.8587 GB, free: 51.73 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.674, allocations: 7.938 kB / 0.8587 GB, free: 51.72 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002668/1.677, allocations: 1.686 MB / 0.8603 GB, free: 50.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003589/1.677, allocations: 236.1 kB / 0.8606 GB, free: 49.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/1.677, allocations: 7.984 kB / 0.8606 GB, free: 49.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000538/1.678, allocations: 31.91 kB / 0.8606 GB, free: 49.73 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/1.678, allocations: 64.64 kB / 0.8607 GB, free: 49.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.99e-05/1.678, allocations: 23.98 kB / 0.8607 GB, free: 49.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003627/1.678, allocations: 342.9 kB / 0.861 GB, free: 49.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.678, allocations: 0 / 0.861 GB, free: 49.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00198/1.68, allocations: 0.601 MB / 0.8616 GB, free: 48.71 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.004244/1.684, allocations: 2.713 MB / 0.8642 GB, free: 46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002364/1.687, allocations: 1.315 MB / 0.8655 GB, free: 44.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.687, allocations: 3.938 kB / 0.8655 GB, free: 44.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007262/1.688, allocations: 448.7 kB / 0.866 GB, free: 44.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/1.689, allocations: 323.6 kB / 0.8663 GB, free: 43.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/1.692, allocations: 1.621 MB / 0.8678 GB, free: 42.27 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/1.693, allocations: 1.011 MB / 0.8688 GB, free: 41.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001054/1.694, allocations: 318.2 kB / 0.8691 GB, free: 40.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003595/1.694, allocations: 271.3 kB / 0.8694 GB, free: 40.66 MB / 442.7 MB Notification: Performance of SimCode: time 2.385e-06/1.694, allocations: 0 / 0.8694 GB, free: 40.66 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0507/1.745, allocations: 26.72 MB / 0.8955 GB, free: 14.04 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/1.745, allocations: 133.2 kB / 0.8956 GB, free: 13.85 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.065/4.81, allocations: 4 kB / 0.8956 GB, free: 13.84 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat