Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 101.1 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003183, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3154, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8585/1.174, allocations: 321 MB / 0.6805 GB, free: 107.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/1.174, allocations: 84.42 kB / 0.6806 GB, free: 107.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2981/1.472, allocations: 132 MB / 0.8095 GB, free: 1.223 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.472, allocations: 0 / 0.8095 GB, free: 1.223 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.357e-05/1.473, allocations: 28.14 kB / 0.8095 GB, free: 1.195 MB / 426.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.27/1.743, allocations: 1.182 MB / 0.8107 GB, free: 97.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.283e-05/1.743, allocations: 9.562 kB / 0.8107 GB, free: 97.22 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006872/1.743, allocations: 103.5 kB / 0.8108 GB, free: 97.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008112/1.744, allocations: 95.39 kB / 0.8109 GB, free: 97.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002299/1.747, allocations: 0.6587 MB / 0.8115 GB, free: 96.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/1.747, allocations: 111.6 kB / 0.8117 GB, free: 96.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002288/1.747, allocations: 59.84 kB / 0.8117 GB, free: 96.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/1.749, allocations: 0.883 MB / 0.8126 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.976e-05/1.749, allocations: 1.125 kB / 0.8126 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/1.749, allocations: 24.34 kB / 0.8126 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001363/1.749, allocations: 57.03 kB / 0.8126 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/1.751, allocations: 0.8282 MB / 0.8135 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006517/1.757, allocations: 3.287 MB / 0.8167 GB, free: 95.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/1.758, allocations: 0.6638 MB / 0.8173 GB, free: 95.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003658/1.762, allocations: 2.045 MB / 0.8193 GB, free: 94.43 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/1.762, allocations: 42.12 kB / 0.8194 GB, free: 94.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 2.585e-06/1.762, allocations: 0 / 0.8194 GB, free: 94.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.007248/1.769, allocations: 2.83 MB / 0.8221 GB, free: 93.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/1.769, allocations: 90.91 kB / 0.8222 GB, free: 93.78 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009735/1.77, allocations: 0.6 MB / 0.8228 GB, free: 93.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.05e-05/1.771, allocations: 39.36 kB / 0.8228 GB, free: 93.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/1.771, allocations: 337.2 kB / 0.8231 GB, free: 93.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/1.771, allocations: 224.2 kB / 0.8234 GB, free: 93.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-05/1.771, allocations: 20.44 kB / 0.8234 GB, free: 93.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/1.771, allocations: 382.5 kB / 0.8237 GB, free: 93.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006275/1.772, allocations: 357.7 kB / 0.8241 GB, free: 93.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006668/1.773, allocations: 0.4986 MB / 0.8246 GB, free: 92.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007619/1.773, allocations: 412.4 kB / 0.825 GB, free: 92.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/1.773, allocations: 0.9688 kB / 0.825 GB, free: 92.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002207/1.776, allocations: 1.137 MB / 0.8261 GB, free: 92.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003307/1.776, allocations: 1.574 MB / 0.8276 GB, free: 91.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/1.776, allocations: 6.062 kB / 0.8276 GB, free: 91.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001415/1.777, allocations: 443.3 kB / 0.828 GB, free: 91.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006511/1.778, allocations: 159.4 kB / 0.8282 GB, free: 91.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/1.779, allocations: 1.022 MB / 0.8292 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008252/1.78, allocations: 42.88 kB / 0.8292 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-05/1.78, allocations: 36.56 kB / 0.8293 GB, free: 90.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/1.78, allocations: 3.906 kB / 0.8293 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001615/1.782, allocations: 0.998 MB / 0.8302 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/1.782, allocations: 3.75 kB / 0.8303 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006235/1.782, allocations: 309.6 kB / 0.8305 GB, free: 90.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006522/1.783, allocations: 170.6 kB / 0.8307 GB, free: 90.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008805/1.784, allocations: 0.9029 MB / 0.8316 GB, free: 90.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007179/1.785, allocations: 52.97 kB / 0.8316 GB, free: 90.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.787e-05/1.785, allocations: 35.03 kB / 0.8317 GB, free: 90.08 MB / 426.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 () * Number of clocked 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.000535/1.785, allocations: 330 kB / 0.832 GB, free: 89.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/1.785, allocations: 78.53 kB / 0.8321 GB, free: 89.85 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001946/1.787, allocations: 1.096 MB / 0.8331 GB, free: 89.78 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/1.787, allocations: 7.469 kB / 0.8331 GB, free: 89.78 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/1.787, allocations: 1.875 kB / 0.8331 GB, free: 89.78 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/1.787, allocations: 3.891 kB / 0.8331 GB, free: 89.78 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/1.791, allocations: 2 MB / 0.8351 GB, free: 89.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/1.791, allocations: 3.953 kB / 0.8351 GB, free: 89.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005767/1.791, allocations: 117.3 kB / 0.8352 GB, free: 89.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/1.792, allocations: 453 kB / 0.8356 GB, free: 89.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.22e-05/1.792, allocations: 21.2 kB / 0.8357 GB, free: 89.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/1.793, allocations: 1.027 MB / 0.8367 GB, free: 88.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/1.793, allocations: 2.156 kB / 0.8367 GB, free: 88.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/1.796, allocations: 1.592 MB / 0.8382 GB, free: 88.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004838/1.796, allocations: 251.3 kB / 0.8385 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/1.796, allocations: 13.72 kB / 0.8385 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005863/1.797, allocations: 51.06 kB / 0.8385 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/1.797, allocations: 55.06 kB / 0.8386 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.411e-05/1.797, allocations: 31.97 kB / 0.8386 GB, free: 88.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004935/1.798, allocations: 477.3 kB / 0.8391 GB, free: 88.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.798, allocations: 0 / 0.8391 GB, free: 88.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001957/1.8, allocations: 0.6456 MB / 0.8397 GB, free: 88.47 MB / 426.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 () * Number of clocked 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.003571/1.803, allocations: 2.626 MB / 0.8423 GB, free: 87.74 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002834/1.806, allocations: 1.38 MB / 0.8436 GB, free: 87.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.806, allocations: 0 / 0.8436 GB, free: 87.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008932/1.807, allocations: 462.6 kB / 0.8441 GB, free: 87.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/1.808, allocations: 357.4 kB / 0.8444 GB, free: 87.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/1.813, allocations: 5.445 MB / 0.8497 GB, free: 83.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/1.814, allocations: 1.011 MB / 0.8507 GB, free: 83.25 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001032/1.815, allocations: 304.1 kB / 0.851 GB, free: 83.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004331/1.815, allocations: 277.1 kB / 0.8513 GB, free: 83.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.012e-06/1.815, allocations: 0 / 0.8513 GB, free: 83.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04573/1.861, allocations: 29.22 MB / 0.8798 GB, free: 81.74 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/1.861, allocations: 201.6 kB / 0.88 GB, free: 81.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.053/4.914, allocations: 3.938 kB / 0.88 GB, free: 81.5 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat