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.0009166/0.0009166, allocations: 96.81 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008875/0.0008878, allocations: 195 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2237/0.2237, allocations: 45.91 MB / 344.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002981, allocations: 11.94 kB / 418.2 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1246, allocations: 63.46 MB / 481.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.002426/0.127, allocations: 1.96 MB / 483.6 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1282, allocations: 0.647 MB / 484.3 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.75e-05/0.1283, allocations: 4 kB / 484.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.656e-05/0.1283, allocations: 27.77 kB / 484.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001712/0.1285, allocations: 55.53 kB / 484.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.1288, allocations: 71.92 kB / 484.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.1292, allocations: 315.3 kB / 484.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002451/0.1294, allocations: 106.9 kB / 484.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002138/0.1296, allocations: 123.5 kB / 484.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.1298, allocations: 123.5 kB / 485.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.312e-05/0.1299, allocations: 16 kB / 485.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.898e-05/0.13, allocations: 24 kB / 485.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.516e-05/0.13, allocations: 51.83 kB / 485.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.49e-05/0.1301, allocations: 77.58 kB / 485.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.1304, allocations: 275.5 kB / 485.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1304, allocations: 0 / 485.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.1304, allocations: 3.984 kB / 485.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.1304, allocations: 0 / 485.5 MB, free: 1.402 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.0008088/0.1312, allocations: 0.5342 MB / 486 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.1313, allocations: 8.031 kB / 486 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.965e-05/0.1313, allocations: 74.53 kB / 486.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002845/0.1316, allocations: 47.55 kB / 486.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.1318, allocations: 205.8 kB / 486.4 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.342e-05/0.1319, allocations: 36.59 kB / 486.4 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.132, allocations: 28 kB / 486.4 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000514/0.1325, allocations: 278.1 kB / 486.7 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1325, allocations: 3.938 kB / 486.7 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.887e-05/0.1325, allocations: 12 kB / 486.7 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.1326, allocations: 8 kB / 486.7 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004329/0.133, allocations: 218.6 kB / 486.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.1348, allocations: 1.028 MB / 488 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.685e-05/0.1349, allocations: 30.58 kB / 488 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.366e-05/0.1349, allocations: 28.91 kB / 488 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.216e-05/0.135, allocations: 0 / 488 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.135, allocations: 34.56 kB / 488.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.135, allocations: 0 / 488.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002369/0.1352, allocations: 73.36 kB / 488.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.1353, allocations: 51.41 kB / 488.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003957/0.1357, allocations: 322.8 kB / 488.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.1357, allocations: 29.64 kB / 488.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.1359, allocations: 234.8 kB / 488.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.1359, allocations: 15.83 kB / 488.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.136, allocations: 8.125 kB / 488.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1361, allocations: 330.8 kB / 489.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.1363, allocations: 63.97 kB / 489.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.1364, allocations: 97.67 kB / 489.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.1366, allocations: 73 kB / 489.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1366, allocations: 0 / 489.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003803/0.137, allocations: 241.9 kB / 489.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.137, allocations: 4 kB / 489.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.137, allocations: 3.938 kB / 489.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.1371, allocations: 4 kB / 489.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.1373, allocations: 55.89 kB / 489.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.1374, allocations: 4 kB / 489.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.1376, allocations: 35.59 kB / 489.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.1376, allocations: 7.984 kB / 489.7 MB, free: 12.98 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.0001279/0.1377, allocations: 145.8 kB / 489.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.1378, allocations: 19.72 kB / 489.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.032e-05/0.1378, allocations: 24.89 kB / 489.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1378, allocations: 0 / 489.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1378, allocations: 0 / 489.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.1378, allocations: 0 / 489.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005589/0.1384, allocations: 0.5072 MB / 490.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1384, allocations: 0 / 490.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.607e-05/0.1385, allocations: 4 kB / 490.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1385, allocations: 0 / 490.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.1385, allocations: 4 kB / 490.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1385, allocations: 0 / 490.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1385, allocations: 3.953 kB / 490.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001224/0.1386, allocations: 109.7 kB / 490.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.741e-05/0.1387, allocations: 100.8 kB / 490.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.1387, allocations: 4 kB / 490.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.521e-05/0.1388, allocations: 3.984 kB / 490.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.603e-05/0.1389, allocations: 3.953 kB / 490.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.1389, allocations: 4 kB / 490.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002328/0.1391, allocations: 222 kB / 490.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1391, allocations: 0 / 490.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002526/0.1394, allocations: 67.78 kB / 490.9 MB, free: 11.66 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.0003933/0.1398, allocations: 0.6215 MB / 491.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002561/0.14, allocations: 127.8 kB / 491.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.14, allocations: 4.094 kB / 491.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.093e-05/0.1401, allocations: 8 kB / 491.6 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.1404, allocations: 28.86 kB / 491.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.1422, allocations: 1.194 MB / 492.9 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.1425, allocations: 0.7404 MB / 493.6 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001225/0.1427, allocations: 17.95 kB / 493.6 MB, free: 8.812 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.1428, allocations: 71.41 kB / 493.7 MB, free: 8.742 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1428, allocations: 4 kB / 493.7 MB, free: 8.738 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01361/0.1564, allocations: 3.729 MB / 497.4 MB, free: 5.152 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/0.1566, allocations: 189.5 kB / 497.6 MB, free: 4.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/1.986, allocations: 4 kB / 497.6 MB, free: 4.906 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