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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009815/0.0009815, allocations: 95.23 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008886/0.0008886, allocations: 183.5 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 223.2 MB / 241.8 MB, free: 404 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2119/0.2119, allocations: 44.23 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004147/0.0004147, allocations: 8 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1355, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.002826/0.1384, allocations: 1.854 MB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.1399, allocations: 0.6044 MB / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.14, allocations: 4 kB / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.43e-05/0.1401, allocations: 27.77 kB / 474 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.1403, allocations: 71.78 kB / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000229/0.1405, allocations: 67.91 kB / 474.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.1408, allocations: 216.1 kB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002523/0.141, allocations: 118.9 kB / 474.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.1412, allocations: 115.6 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.1415, allocations: 131.4 kB / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.736e-05/0.1415, allocations: 16 kB / 474.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.297e-05/0.1415, allocations: 16 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.808e-05/0.1416, allocations: 47.83 kB / 474.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.381e-05/0.1417, allocations: 77.58 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.142, allocations: 275.5 kB / 475.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.142, allocations: 0 / 475.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.142, allocations: 0 / 475.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.142, allocations: 3.938 kB / 475.2 MB, free: 10 MB / 350.1 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.0008858/0.1429, allocations: 0.5381 MB / 475.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.143, allocations: 8.031 kB / 475.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/0.1431, allocations: 70.53 kB / 475.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.951e-05/0.1432, allocations: 31.62 kB / 475.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.1433, allocations: 198.7 kB / 476 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.667e-05/0.1434, allocations: 28.66 kB / 476 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.1435, allocations: 31.95 kB / 476.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.144, allocations: 274.1 kB / 476.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.144, allocations: 0 / 476.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.1441, allocations: 12 kB / 476.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1441, allocations: 8 kB / 476.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003901/0.1445, allocations: 218.5 kB / 476.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.1462, allocations: 1.032 MB / 477.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.312e-05/0.1462, allocations: 34.53 kB / 477.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.807e-06/0.1463, allocations: 0 / 477.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.1463, allocations: 38.62 kB / 477.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.1463, allocations: 0 / 477.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002192/0.1465, allocations: 77.36 kB / 477.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.1466, allocations: 55.39 kB / 477.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000361/0.1469, allocations: 310.9 kB / 478.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.147, allocations: 33.7 kB / 478.1 MB, free: 6.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.1471, allocations: 230.8 kB / 478.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.1472, allocations: 15.97 kB / 478.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.1472, allocations: 7.938 kB / 478.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1473, allocations: 338.8 kB / 478.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.1475, allocations: 63.97 kB / 478.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.1476, allocations: 90.69 kB / 478.9 MB, free: 6.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000153/0.1478, allocations: 76.48 kB / 478.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.1478, allocations: 0 / 478.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003736/0.1482, allocations: 237.4 kB / 479.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.1482, allocations: 4 kB / 479.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1482, allocations: 0 / 479.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.1482, allocations: 4 kB / 479.2 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.1485, allocations: 55.89 kB / 479.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.088e-06/0.1485, allocations: 4 kB / 479.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.1488, allocations: 39.58 kB / 479.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.979e-05/0.1488, allocations: 8 kB / 479.3 MB, free: 5.645 MB / 350.1 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.0001187/0.1489, allocations: 138.3 kB / 479.4 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.149, allocations: 23.67 kB / 479.4 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.219e-05/0.149, allocations: 28.84 kB / 479.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.149, allocations: 0 / 479.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1491, allocations: 0 / 479.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1491, allocations: 0 / 479.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005957/0.1497, allocations: 0.5072 MB / 480 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.696e-06/0.1497, allocations: 0 / 480 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.887e-05/0.1497, allocations: 7.938 kB / 480 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1497, allocations: 0 / 480 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.1497, allocations: 3.984 kB / 480 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1497, allocations: 0 / 480 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1497, allocations: 4 kB / 480 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001309/0.1499, allocations: 115.4 kB / 480.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.532e-05/0.15, allocations: 100.8 kB / 480.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.15, allocations: 7.984 kB / 480.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.1501, allocations: 0 / 480.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.981e-05/0.1501, allocations: 11.98 kB / 480.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.1502, allocations: 0 / 480.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002412/0.1504, allocations: 221.9 kB / 480.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1504, allocations: 4.031 kB / 480.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000258/0.1507, allocations: 67.78 kB / 480.5 MB, free: 4.301 MB / 350.1 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.0004787/0.1512, allocations: 0.7108 MB / 481.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002677/0.1514, allocations: 115.9 kB / 481.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1514, allocations: 0 / 481.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.164e-05/0.1515, allocations: 12 kB / 481.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.1517, allocations: 24.81 kB / 481.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.1534, allocations: 1.378 MB / 482.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.1538, allocations: 0.7482 MB / 483.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001241/0.1539, allocations: 25.94 kB / 483.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.154, allocations: 75.41 kB / 483.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.154, allocations: 0 / 483.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01336/0.1674, allocations: 3.719 MB / 487.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/0.1676, allocations: 187.1 kB / 487.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/1.961, allocations: 3.938 kB / 487.5 MB, free: 13.27 MB / 366.1 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