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.001021/0.001021, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007421/0.0007421, allocations: 91.72 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1682/0.1682, allocations: 45.13 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.841e-05/2.853e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08582/0.08586, allocations: 63.24 MB / 0.5115 GB, free: 6.691 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3381/0.424, allocations: 90.6 MB / 0.5999 GB, free: 3.242 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.4242, allocations: 77.52 kB / 0.6 GB, free: 3.199 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01059/0.4348, allocations: 4.461 MB / 0.6044 GB, free: 15.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4349, allocations: 0 / 0.6044 GB, free: 15.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.4349, allocations: 11.44 kB / 0.6044 GB, free: 15.37 MB / 410.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.0006544/0.4356, allocations: 0.5118 MB / 0.6049 GB, free: 14.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.4356, allocations: 15.97 kB / 0.6049 GB, free: 14.81 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.4357, allocations: 68.59 kB / 0.605 GB, free: 14.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002815/0.436, allocations: 43.7 kB / 0.605 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.4362, allocations: 207.3 kB / 0.6052 GB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.535e-05/0.4363, allocations: 27.72 kB / 0.6052 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/0.4363, allocations: 27.31 kB / 0.6053 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004119/0.4367, allocations: 264.4 kB / 0.6055 GB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.4368, allocations: 7.984 kB / 0.6055 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.4368, allocations: 19.23 kB / 0.6055 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.4368, allocations: 8 kB / 0.6055 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003125/0.4371, allocations: 197.4 kB / 0.6057 GB, free: 14.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.4386, allocations: 1.038 MB / 0.6067 GB, free: 13.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.055e-05/0.4387, allocations: 33.14 kB / 0.6068 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.595e-05/0.4388, allocations: 28.17 kB / 0.6068 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.4388, allocations: 0 / 0.6068 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.4388, allocations: 34.5 kB / 0.6068 GB, free: 13.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.4388, allocations: 0 / 0.6068 GB, free: 13.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001588/0.439, allocations: 60.89 kB / 0.6069 GB, free: 13.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.905e-05/0.439, allocations: 59.42 kB / 0.6069 GB, free: 13.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002643/0.4393, allocations: 281.4 kB / 0.6072 GB, free: 12.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.4393, allocations: 25.7 kB / 0.6072 GB, free: 12.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.4394, allocations: 236.4 kB / 0.6075 GB, free: 12.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.297e-06/0.4394, allocations: 7.406 kB / 0.6075 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.4395, allocations: 7.812 kB / 0.6075 GB, free: 12.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.787e-05/0.4396, allocations: 332.6 kB / 0.6078 GB, free: 12.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.491e-05/0.4397, allocations: 57.62 kB / 0.6079 GB, free: 12.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.4398, allocations: 86.08 kB / 0.6079 GB, free: 12.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.4399, allocations: 80.84 kB / 0.608 GB, free: 12.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4399, allocations: 0 / 0.608 GB, free: 12.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002981/0.4402, allocations: 211.2 kB / 0.6082 GB, free: 11.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.4403, allocations: 11.94 kB / 0.6082 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.4403, allocations: 0 / 0.6082 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.4403, allocations: 0 / 0.6082 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.4406, allocations: 63.58 kB / 0.6083 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.4406, allocations: 8.016 kB / 0.6083 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.4408, allocations: 38.41 kB / 0.6083 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.4409, allocations: 11.44 kB / 0.6083 GB, free: 11.78 MB / 410.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 () * 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 6.704e-05/0.4409, allocations: 112.5 kB / 0.6084 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.441, allocations: 19.81 kB / 0.6085 GB, free: 11.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.195e-05/0.441, allocations: 20.08 kB / 0.6085 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.441, allocations: 4 kB / 0.6085 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.441, allocations: 0 / 0.6085 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.4411, allocations: 7.984 kB / 0.6085 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005239/0.4416, allocations: 0.5038 MB / 0.609 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4416, allocations: 7.938 kB / 0.609 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.992e-05/0.4416, allocations: 4 kB / 0.609 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.4416, allocations: 4 kB / 0.609 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.4417, allocations: 0 / 0.609 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4417, allocations: 0 / 0.609 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4417, allocations: 0 / 0.609 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.4418, allocations: 119 kB / 0.6091 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.657e-05/0.4419, allocations: 100.2 kB / 0.6092 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.4419, allocations: 0 / 0.6092 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.442, allocations: 4 kB / 0.6092 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.893e-05/0.442, allocations: 11.23 kB / 0.6092 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.442, allocations: 4 kB / 0.6092 GB, free: 10.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000193/0.4422, allocations: 216 kB / 0.6094 GB, free: 10.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4423, allocations: 0 / 0.6094 GB, free: 10.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002391/0.4425, allocations: 67.53 kB / 0.6095 GB, free: 10.6 MB / 410.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 () * 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.0003724/0.4429, allocations: 0.7092 MB / 0.6102 GB, free: 9.863 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001919/0.4431, allocations: 111.1 kB / 0.6103 GB, free: 9.789 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4431, allocations: 0 / 0.6103 GB, free: 9.789 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.051e-05/0.4431, allocations: 7 kB / 0.6103 GB, free: 9.785 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001689/0.4433, allocations: 22.22 kB / 0.6103 GB, free: 9.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005881/0.4439, allocations: 294.9 kB / 0.6106 GB, free: 9.461 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.4441, allocations: 0.748 MB / 0.6113 GB, free: 8.688 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001113/0.4443, allocations: 30.05 kB / 0.6114 GB, free: 8.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.912e-05/0.4443, allocations: 71.78 kB / 0.6114 GB, free: 8.637 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4444, allocations: 3.938 kB / 0.6114 GB, free: 8.633 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01376/0.4581, allocations: 3.684 MB / 0.615 GB, free: 5.09 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.4583, allocations: 160.4 kB / 0.6152 GB, free: 4.859 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.552/2.011, allocations: 0 / 0.6152 GB, free: 4.859 MB / 410.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