Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001208, allocations: 198.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.2 MB / 245 MB, free: 5.793 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008486/0.0008485, allocations: 107.1 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4018/0.4018, allocations: 45.24 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003806, allocations: 4 kB / 468.5 MB, free: 7.629 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4041, allocations: 63.25 MB / 0.5193 GB, free: 37.3 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.5342, allocations: 90.66 MB / 0.6078 GB, free: 12.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002995/0.5346, allocations: 87.92 kB / 0.6079 GB, free: 12.67 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01207/0.5467, allocations: 4.471 MB / 0.6123 GB, free: 8.191 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5467, allocations: 0 / 0.6123 GB, free: 8.191 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.5468, allocations: 8 kB / 0.6123 GB, free: 8.184 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009508/0.5477, allocations: 0.5264 MB / 0.6128 GB, free: 7.609 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.5478, allocations: 8.031 kB / 0.6128 GB, free: 7.602 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.498e-05/0.5479, allocations: 70.53 kB / 0.6129 GB, free: 7.523 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002961/0.5482, allocations: 47.61 kB / 0.6129 GB, free: 7.477 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002022/0.5484, allocations: 200.8 kB / 0.6131 GB, free: 7.242 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.966e-05/0.5485, allocations: 28.64 kB / 0.6131 GB, free: 7.215 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/0.5486, allocations: 32 kB / 0.6132 GB, free: 7.184 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005871/0.5492, allocations: 278.1 kB / 0.6134 GB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.5492, allocations: 448 / 0.6134 GB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.5492, allocations: 12 kB / 0.6134 GB, free: 6.895 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.5492, allocations: 8 kB / 0.6134 GB, free: 6.887 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004586/0.5497, allocations: 218.5 kB / 0.6137 GB, free: 6.672 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.5514, allocations: 1.038 MB / 0.6147 GB, free: 5.578 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.762e-05/0.5516, allocations: 34.52 kB / 0.6147 GB, free: 5.535 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.031e-05/0.5516, allocations: 0 / 0.6147 GB, free: 5.535 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.5516, allocations: 30.56 kB / 0.6147 GB, free: 5.496 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.5516, allocations: 0 / 0.6147 GB, free: 5.496 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002366/0.5519, allocations: 73.56 kB / 0.6148 GB, free: 5.418 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.5519, allocations: 55.53 kB / 0.6149 GB, free: 5.352 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003642/0.5523, allocations: 297.9 kB / 0.6151 GB, free: 5.055 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.5523, allocations: 29.64 kB / 0.6152 GB, free: 5.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.5525, allocations: 226.9 kB / 0.6154 GB, free: 4.793 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.228e-05/0.5525, allocations: 7.891 kB / 0.6154 GB, free: 4.785 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.349e-05/0.5525, allocations: 8 kB / 0.6154 GB, free: 4.777 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.5527, allocations: 334.8 kB / 0.6157 GB, free: 4.441 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.5528, allocations: 67.91 kB / 0.6158 GB, free: 4.375 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.553, allocations: 93.67 kB / 0.6159 GB, free: 4.277 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001668/0.5532, allocations: 69 kB / 0.6159 GB, free: 4.211 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5532, allocations: 0 / 0.6159 GB, free: 4.211 MB / 426.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003964/0.5536, allocations: 233.9 kB / 0.6162 GB, free: 3.977 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.5536, allocations: 7.938 kB / 0.6162 GB, free: 3.969 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.5537, allocations: 8.031 kB / 0.6162 GB, free: 3.961 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.5537, allocations: 0 / 0.6162 GB, free: 3.961 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00029/0.554, allocations: 59.95 kB / 0.6162 GB, free: 3.902 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.554, allocations: 0 / 0.6162 GB, free: 3.902 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.5543, allocations: 43.47 kB / 0.6163 GB, free: 3.859 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.5543, allocations: 11.98 kB / 0.6163 GB, free: 3.848 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.5544, allocations: 133.7 kB / 0.6164 GB, free: 3.707 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.997e-05/0.5545, allocations: 19.72 kB / 0.6164 GB, free: 3.688 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.586e-05/0.5546, allocations: 28.89 kB / 0.6165 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.5546, allocations: 0 / 0.6165 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.5546, allocations: 0 / 0.6165 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.5546, allocations: 0 / 0.6165 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000564/0.5552, allocations: 0.5111 MB / 0.617 GB, free: 3.082 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5552, allocations: 0 / 0.617 GB, free: 3.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.022e-05/0.5552, allocations: 4 kB / 0.617 GB, free: 3.078 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.5552, allocations: 0 / 0.617 GB, free: 3.078 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.5552, allocations: 8.047 kB / 0.617 GB, free: 3.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.5552, allocations: 8 kB / 0.617 GB, free: 3.062 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5552, allocations: 3.938 kB / 0.617 GB, free: 3.059 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.5554, allocations: 111.4 kB / 0.6171 GB, free: 2.922 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.159e-05/0.5555, allocations: 100.9 kB / 0.6172 GB, free: 2.805 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.5555, allocations: 4.031 kB / 0.6172 GB, free: 2.801 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.5556, allocations: 7.984 kB / 0.6172 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.389e-05/0.5557, allocations: 3.953 kB / 0.6172 GB, free: 2.789 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-06/0.5557, allocations: 0 / 0.6172 GB, free: 2.789 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002555/0.5559, allocations: 221.9 kB / 0.6174 GB, free: 2.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5559, allocations: 4 kB / 0.6174 GB, free: 2.566 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002784/0.5562, allocations: 63.84 kB / 0.6175 GB, free: 2.504 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004919/0.5567, allocations: 0.7108 MB / 0.6182 GB, free: 1.758 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002739/0.557, allocations: 119.8 kB / 0.6183 GB, free: 1.641 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.557, allocations: 0 / 0.6183 GB, free: 1.641 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.444e-05/0.5571, allocations: 16.03 kB / 0.6183 GB, free: 1.625 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.5573, allocations: 24.83 kB / 0.6183 GB, free: 1.598 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.5591, allocations: 1.375 MB / 0.6197 GB, free: 168 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.5594, allocations: 0.7443 MB / 0.6204 GB, free: 15.39 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000113/0.5596, allocations: 21.95 kB / 0.6204 GB, free: 15.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.5597, allocations: 75.41 kB / 0.6205 GB, free: 15.3 MB / 442.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5597, allocations: 4 kB / 0.6205 GB, free: 15.29 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01625/0.5759, allocations: 3.716 MB / 0.6241 GB, free: 11.71 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/0.5762, allocations: 173.9 kB / 0.6243 GB, free: 11.48 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/2.394, allocations: 0 / 0.6243 GB, free: 11.48 MB / 442.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat does not exist to compare? outputFormat=mat