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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001103/0.001103, allocations: 95.81 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001114/0.001114, allocations: 208.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2197/0.2197, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003029/0.0003029, allocations: 8 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1297, allocations: 63.46 MB / 481.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.002327/0.1321, allocations: 1.855 MB / 483.4 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1332, allocations: 0.6472 MB / 484 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.468e-05/0.1333, allocations: 4 kB / 484 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.926e-05/0.1333, allocations: 27.77 kB / 484.1 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.1335, allocations: 79.75 kB / 484.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.1337, allocations: 59.94 kB / 484.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002276/0.134, allocations: 216.1 kB / 484.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002384/0.1342, allocations: 122.8 kB / 484.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000198/0.1344, allocations: 115.6 kB / 484.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.1346, allocations: 131.4 kB / 484.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.1346, allocations: 16 kB / 484.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.163e-05/0.1347, allocations: 16 kB / 484.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.295e-05/0.1348, allocations: 47.83 kB / 484.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.915e-05/0.1348, allocations: 81.52 kB / 484.9 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.1351, allocations: 279.4 kB / 485.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1351, allocations: 3.938 kB / 485.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1351, allocations: 0 / 485.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1351, allocations: 0 / 485.2 MB, free: 1.547 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.0007212/0.1358, allocations: 0.5381 MB / 485.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1359, allocations: 8.031 kB / 485.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.524e-05/0.1359, allocations: 74.47 kB / 485.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002661/0.1362, allocations: 47.61 kB / 485.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.1364, allocations: 201 kB / 486.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.224e-05/0.1365, allocations: 28.66 kB / 486.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.1365, allocations: 31.98 kB / 486.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004171/0.1369, allocations: 270.1 kB / 486.4 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.1369, allocations: 0 / 486.4 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.651e-05/0.137, allocations: 12 kB / 486.4 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.137, allocations: 8 kB / 486.4 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003794/0.1374, allocations: 226.5 kB / 486.6 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.139, allocations: 1.024 MB / 487.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.482e-05/0.139, allocations: 34.56 kB / 487.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.1391, allocations: 0 / 487.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.766e-05/0.1391, allocations: 38.5 kB / 487.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.051e-06/0.1391, allocations: 0 / 487.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001824/0.1393, allocations: 73.48 kB / 487.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.1393, allocations: 55.41 kB / 487.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.1396, allocations: 318.8 kB / 488.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.1397, allocations: 29.64 kB / 488.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1398, allocations: 227 kB / 488.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.1398, allocations: 27.81 kB / 488.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.1398, allocations: 4 kB / 488.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1399, allocations: 330.8 kB / 488.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.1401, allocations: 67.97 kB / 488.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.1402, allocations: 97.61 kB / 488.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.1404, allocations: 69 kB / 489 MB, free: 13.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1404, allocations: 4 kB / 489 MB, free: 13.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003533/0.1407, allocations: 234 kB / 489.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.1408, allocations: 4 kB / 489.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1408, allocations: 0 / 489.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.1408, allocations: 4 kB / 489.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002785/0.1411, allocations: 55.89 kB / 489.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.1411, allocations: 4 kB / 489.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002349/0.1413, allocations: 35.62 kB / 489.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.1414, allocations: 12 kB / 489.3 MB, free: 13.16 MB / 366.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.0001082/0.1415, allocations: 141.7 kB / 489.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.1415, allocations: 19.72 kB / 489.5 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.1416, allocations: 24.89 kB / 489.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.1416, allocations: 0 / 489.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1416, allocations: 0 / 489.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1416, allocations: 0 / 489.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005264/0.1421, allocations: 0.5111 MB / 490 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1421, allocations: 7.922 kB / 490 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.911e-05/0.1422, allocations: 4 kB / 490 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1422, allocations: 0 / 490 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.1422, allocations: 4 kB / 490.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1422, allocations: 0 / 490.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1422, allocations: 4 kB / 490.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001173/0.1423, allocations: 119.4 kB / 490.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.643e-05/0.1424, allocations: 100.8 kB / 490.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/0.1424, allocations: 4 kB / 490.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.1426, allocations: 4 kB / 490.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.796e-05/0.1426, allocations: 15.88 kB / 490.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-06/0.1426, allocations: 0 / 490.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002311/0.1428, allocations: 222 kB / 490.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1428, allocations: 0 / 490.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002743/0.1431, allocations: 67.78 kB / 490.6 MB, free: 11.81 MB / 366.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.0004057/0.1435, allocations: 0.7075 MB / 491.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002374/0.1438, allocations: 119.9 kB / 491.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1438, allocations: 0 / 491.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.078e-05/0.1438, allocations: 8 kB / 491.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.144, allocations: 27.42 kB / 491.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.1457, allocations: 1.374 MB / 492.8 MB, free: 9.488 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.146, allocations: 0.7482 MB / 493.6 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.1461, allocations: 25.92 kB / 493.6 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.1462, allocations: 79.41 kB / 493.7 MB, free: 8.613 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1462, allocations: 0 / 493.7 MB, free: 8.613 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01331/0.1595, allocations: 3.716 MB / 497.4 MB, free: 5.035 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/0.1597, allocations: 195.8 kB / 497.6 MB, free: 4.785 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.781/1.941, allocations: 0 / 497.6 MB, free: 4.785 MB / 366.1 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