Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",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.001908/0.001908, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 221.4 MB / 236 MB, free: 2.902 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.0008811/0.0008811, allocations: 83.91 kB / 287 MB, free: 192 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1998/0.1998, allocations: 44.15 MB / 382 MB, free: 14.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.131e-05/5.164e-05, allocations: 4 kB / 451.9 MB, free: 9.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1375, allocations: 61.91 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4012/0.5387, allocations: 89.53 MB / 0.5892 GB, free: 15.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.539, allocations: 75.95 kB / 0.5893 GB, free: 15.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01159/0.5506, allocations: 4.405 MB / 0.5936 GB, free: 11.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.5506, allocations: 0 / 0.5936 GB, free: 11.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.074e-05/0.5507, allocations: 10.84 kB / 0.5936 GB, free: 11.23 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.0008415/0.5515, allocations: 0.518 MB / 0.5941 GB, free: 10.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.5516, allocations: 8.031 kB / 0.5941 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.5517, allocations: 66.53 kB / 0.5942 GB, free: 10.58 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.03e-05/0.5518, allocations: 31.62 kB / 0.5942 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.5521, allocations: 195.8 kB / 0.5944 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.822e-05/0.5522, allocations: 28.77 kB / 0.5944 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.5522, allocations: 39.94 kB / 0.5945 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005053/0.5527, allocations: 263.8 kB / 0.5947 GB, free: 9.988 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.5528, allocations: 4 kB / 0.5947 GB, free: 9.984 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.166e-05/0.5528, allocations: 12 kB / 0.5947 GB, free: 9.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.5528, allocations: 8 kB / 0.5948 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003839/0.5532, allocations: 203 kB / 0.5949 GB, free: 9.766 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.5551, allocations: 1.029 MB / 0.596 GB, free: 8.676 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.5552, allocations: 42.91 kB / 0.596 GB, free: 8.625 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.67e-05/0.5553, allocations: 20.92 kB / 0.596 GB, free: 8.602 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.5553, allocations: 0 / 0.596 GB, free: 8.602 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.351e-05/0.5553, allocations: 38.55 kB / 0.596 GB, free: 8.555 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.503e-06/0.5553, allocations: 3.938 kB / 0.5961 GB, free: 8.551 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002024/0.5555, allocations: 57.52 kB / 0.5961 GB, free: 8.488 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.5556, allocations: 55.44 kB / 0.5962 GB, free: 8.422 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.5559, allocations: 287.3 kB / 0.5964 GB, free: 8.137 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.556, allocations: 25.7 kB / 0.5965 GB, free: 8.105 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.5561, allocations: 230.8 kB / 0.5967 GB, free: 7.875 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.5562, allocations: 15.89 kB / 0.5967 GB, free: 7.859 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.5562, allocations: 4 kB / 0.5967 GB, free: 7.855 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.5563, allocations: 326.8 kB / 0.597 GB, free: 7.527 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.5564, allocations: 63.94 kB / 0.5971 GB, free: 7.465 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.5566, allocations: 86.7 kB / 0.5972 GB, free: 7.375 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.5567, allocations: 72.47 kB / 0.5972 GB, free: 7.305 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.5567, allocations: 0 / 0.5972 GB, free: 7.305 MB / 410.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003609/0.5571, allocations: 221.3 kB / 0.5974 GB, free: 7.082 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.5571, allocations: 7.938 kB / 0.5974 GB, free: 7.074 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.5571, allocations: 0 / 0.5974 GB, free: 7.074 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.5572, allocations: 7.938 kB / 0.5974 GB, free: 7.066 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.5575, allocations: 55.97 kB / 0.5975 GB, free: 7.012 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.5575, allocations: 4 kB / 0.5975 GB, free: 7.008 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.5578, allocations: 47.52 kB / 0.5976 GB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.5578, allocations: 8 kB / 0.5976 GB, free: 6.953 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 8.761e-05/0.5579, allocations: 112.9 kB / 0.5977 GB, free: 6.836 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.701e-05/0.5579, allocations: 19.77 kB / 0.5977 GB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.381e-05/0.558, allocations: 24.89 kB / 0.5977 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.558, allocations: 0 / 0.5977 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.558, allocations: 0 / 0.5977 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.558, allocations: 4 kB / 0.5977 GB, free: 6.785 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006427/0.5587, allocations: 0.5071 MB / 0.5982 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.5587, allocations: 0 / 0.5982 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.115e-05/0.5587, allocations: 4 kB / 0.5982 GB, free: 6.211 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.5587, allocations: 3.984 kB / 0.5982 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.5587, allocations: 0 / 0.5982 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.5588, allocations: 0 / 0.5982 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.5588, allocations: 8 kB / 0.5982 GB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.5589, allocations: 111.4 kB / 0.5983 GB, free: 6.062 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.659e-05/0.559, allocations: 104.8 kB / 0.5984 GB, free: 5.941 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.5591, allocations: 7.984 kB / 0.5984 GB, free: 5.934 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.5592, allocations: 0 / 0.5984 GB, free: 5.934 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.827e-05/0.5592, allocations: 8.031 kB / 0.5984 GB, free: 5.926 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.5592, allocations: 0 / 0.5984 GB, free: 5.926 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002288/0.5595, allocations: 219.1 kB / 0.5987 GB, free: 5.711 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5595, allocations: 0 / 0.5987 GB, free: 5.711 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002543/0.5597, allocations: 63.84 kB / 0.5987 GB, free: 5.648 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.0004278/0.5602, allocations: 0.7147 MB / 0.5994 GB, free: 4.895 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.5604, allocations: 107.9 kB / 0.5995 GB, free: 4.789 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5604, allocations: 0 / 0.5995 GB, free: 4.789 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.448e-05/0.5604, allocations: 11.94 kB / 0.5995 GB, free: 4.777 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002012/0.5606, allocations: 29.77 kB / 0.5996 GB, free: 4.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006532/0.5613, allocations: 281.7 kB / 0.5998 GB, free: 4.434 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.5616, allocations: 0.748 MB / 0.6006 GB, free: 3.66 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.5618, allocations: 26.06 kB / 0.6006 GB, free: 3.637 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.5619, allocations: 71.41 kB / 0.6006 GB, free: 3.57 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5619, allocations: 0 / 0.6006 GB, free: 3.57 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01501/0.5769, allocations: 3.698 MB / 0.6043 GB, free: 0 / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002063/0.5772, allocations: 149 kB / 0.6044 GB, free: 15.78 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.425, allocations: 0 / 0.6044 GB, free: 15.78 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat does not exist to compare? outputFormat=mat