Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001004/0.001004, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246 MB, free: 10.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2122/0.2122, allocations: 45.91 MB / 344.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002516/0.0002516, allocations: 8 kB / 418.2 MB, free: 20.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1294, allocations: 63.47 MB / 481.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003116/0.1325, allocations: 2.261 MB / 483.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.134, allocations: 0.7366 MB / 484.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.1341, allocations: 8 kB / 484.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.1343, allocations: 51.62 kB / 484.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002952/0.1346, allocations: 91.36 kB / 484.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.1349, allocations: 83.91 kB / 484.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.1353, allocations: 374.5 kB / 485.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.1355, allocations: 112.1 kB / 485.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.1357, allocations: 123.5 kB / 485.5 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.1359, allocations: 143.3 kB / 485.6 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.089e-05/0.136, allocations: 20 kB / 485.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.155e-05/0.136, allocations: 16 kB / 485.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.747e-05/0.1361, allocations: 67.75 kB / 485.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.523e-05/0.1362, allocations: 85.52 kB / 485.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003619/0.1366, allocations: 307.1 kB / 486.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.1366, allocations: 4 kB / 486.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.1366, allocations: 0 / 486.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.1366, allocations: 0 / 486.1 MB, free: 0.75 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001011/0.1376, allocations: 0.6238 MB / 486.7 MB, free: 80 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.1377, allocations: 12.03 kB / 486.7 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.1378, allocations: 66.61 kB / 486.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.265e-05/0.1379, allocations: 47.38 kB / 486.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002986/0.1382, allocations: 277.3 kB / 487.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.1382, allocations: 25 kB / 487.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.1382, allocations: 36 kB / 487.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000669/0.1389, allocations: 362.7 kB / 487.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1389, allocations: 0 / 487.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.871e-05/0.139, allocations: 16 kB / 487.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.139, allocations: 8 kB / 487.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006099/0.1396, allocations: 296.8 kB / 487.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002061/0.1417, allocations: 1.359 MB / 489.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004813/0.1422, allocations: 210.5 kB / 489.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.1424, allocations: 95.52 kB / 489.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.1424, allocations: 0 / 489.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.1425, allocations: 42.56 kB / 489.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.1425, allocations: 0 / 489.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008274/0.1433, allocations: 277.2 kB / 489.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.533e-05/0.1434, allocations: 136.5 kB / 489.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003691/0.1438, allocations: 337.6 kB / 490.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.1438, allocations: 33.64 kB / 490.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.144, allocations: 239.6 kB / 490.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.144, allocations: 55.25 kB / 490.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.264e-05/0.1441, allocations: 7.938 kB / 490.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1442, allocations: 346.8 kB / 490.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.1445, allocations: 92.5 kB / 491 MB, free: 11.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.1447, allocations: 172.2 kB / 491.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.145, allocations: 111.9 kB / 491.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.145, allocations: 0 / 491.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000618/0.1456, allocations: 333.8 kB / 491.6 MB, free: 10.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.1457, allocations: 8 kB / 491.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.1457, allocations: 4.062 kB / 491.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.1457, allocations: 8 kB / 491.6 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/0.1461, allocations: 107.9 kB / 491.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.1461, allocations: 7.938 kB / 491.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.1464, allocations: 51.61 kB / 491.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.1464, allocations: 8 kB / 491.8 MB, free: 10.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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.000157/0.1466, allocations: 153.7 kB / 492 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.841e-05/0.1467, allocations: 39.62 kB / 492 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.485e-05/0.1468, allocations: 30.41 kB / 492 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.016e-06/0.1468, allocations: 4 kB / 492 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.1468, allocations: 3.938 kB / 492 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.1468, allocations: 0 / 492 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007972/0.1476, allocations: 0.5992 MB / 492.6 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.1476, allocations: 0 / 492.6 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.1479, allocations: 71.88 kB / 492.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.224e-06/0.1479, allocations: 4 kB / 492.7 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1479, allocations: 8.125 kB / 492.7 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.1479, allocations: 4 kB / 492.7 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.148, allocations: 3.984 kB / 492.7 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005726/0.1485, allocations: 422.5 kB / 493.1 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.042e-05/0.1486, allocations: 104.7 kB / 493.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.883e-05/0.1487, allocations: 8 kB / 493.3 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.1489, allocations: 15.98 kB / 493.3 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.316e-05/0.149, allocations: 23.92 kB / 493.3 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.149, allocations: 8 kB / 493.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002406/0.1492, allocations: 235.2 kB / 493.5 MB, free: 8.789 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1493, allocations: 0 / 493.5 MB, free: 8.789 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003892/0.1496, allocations: 67.84 kB / 493.6 MB, free: 8.723 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * 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.0008367/0.1505, allocations: 0.9502 MB / 494.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005063/0.151, allocations: 203.8 kB / 494.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.151, allocations: 0.5 kB / 494.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.1513, allocations: 100.1 kB / 494.8 MB, free: 7.434 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004507/0.1517, allocations: 32.28 kB / 494.9 MB, free: 7.402 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.1546, allocations: 1.772 MB / 496.6 MB, free: 5.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.155, allocations: 0.7794 MB / 497.4 MB, free: 4.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.1551, allocations: 26.16 kB / 497.5 MB, free: 4.691 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.1553, allocations: 99.41 kB / 497.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1553, allocations: 0 / 497.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0166/0.1719, allocations: 4.418 MB / 0.4902 GB, free: 304 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002427/0.1722, allocations: 179.1 kB / 0.4904 GB, free: 60 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.999/2.171, allocations: 0 / 0.4904 GB, free: 60 kB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat does not exist to compare? outputFormat=mat