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.001256/0.001256, 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.001519/0.001519, 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.534/1.534, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.198/0.198, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002561/0.0002561, allocations: 11.98 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1284, allocations: 63.46 MB / 481.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002628/0.1311, allocations: 2.164 MB / 483.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.1323, allocations: 0.7447 MB / 484.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.1324, allocations: 7.938 kB / 484.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001823/0.1326, allocations: 55.61 kB / 484.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.1329, allocations: 95.73 kB / 484.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.1331, allocations: 95.77 kB / 484.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003073/0.1334, allocations: 263.5 kB / 484.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.1337, allocations: 112.1 kB / 485 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.1338, allocations: 127.5 kB / 485.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.134, allocations: 139.3 kB / 485.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/0.134, allocations: 20 kB / 485.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.099e-05/0.1341, allocations: 16 kB / 485.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.672e-05/0.1342, allocations: 67.69 kB / 485.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.228e-05/0.1342, allocations: 89.52 kB / 485.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002942/0.1345, allocations: 307.1 kB / 485.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1346, allocations: 0 / 485.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1346, allocations: 0 / 485.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1346, allocations: 0 / 485.8 MB, free: 0.9531 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.0009734/0.1355, allocations: 0.6199 MB / 486.4 MB, free: 292 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1356, allocations: 8.031 kB / 486.4 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.552e-05/0.1357, allocations: 70.53 kB / 486.5 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.492e-05/0.1358, allocations: 47.44 kB / 486.5 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.1361, allocations: 277.4 kB / 486.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.1361, allocations: 25 kB / 486.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.362e-05/0.1362, allocations: 32 kB / 486.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006464/0.1368, allocations: 362.6 kB / 487.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1368, allocations: 0 / 487.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.174e-05/0.1369, allocations: 16 kB / 487.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.1369, allocations: 8 kB / 487.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006134/0.1375, allocations: 295.8 kB / 487.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.1395, allocations: 1.359 MB / 488.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.14, allocations: 202.6 kB / 489.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.14, allocations: 11.98 kB / 489.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.1401, allocations: 38.62 kB / 489.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.1401, allocations: 0 / 489.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007986/0.1409, allocations: 277.2 kB / 489.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.141, allocations: 148.4 kB / 489.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.1413, allocations: 337.5 kB / 489.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.1413, allocations: 29.7 kB / 489.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.1415, allocations: 239.6 kB / 490.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.97e-05/0.1415, allocations: 51.27 kB / 490.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.137e-05/0.1416, allocations: 4 kB / 490.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1417, allocations: 346.8 kB / 490.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.1419, allocations: 88.5 kB / 490.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002865/0.1422, allocations: 180.1 kB / 490.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.1425, allocations: 119.8 kB / 490.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1425, allocations: 0 / 490.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006405/0.1432, allocations: 325 kB / 491.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.1432, allocations: 4 kB / 491.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1432, allocations: 7.938 kB / 491.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.1432, allocations: 4 kB / 491.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.1436, allocations: 108.6 kB / 491.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.1437, allocations: 8 kB / 491.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.1439, allocations: 47.61 kB / 491.4 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.144, allocations: 16 kB / 491.4 MB, free: 10.95 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.0001508/0.1441, allocations: 153.7 kB / 491.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.169e-05/0.1442, allocations: 31.62 kB / 491.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.424e-05/0.1443, allocations: 30.41 kB / 491.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1443, allocations: 8 kB / 491.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1443, allocations: 0 / 491.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1443, allocations: 0 / 491.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007626/0.1451, allocations: 0.6031 MB / 492.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1451, allocations: 0 / 492.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/0.1454, allocations: 72.05 kB / 492.3 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.1454, allocations: 4 kB / 492.3 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.1454, allocations: 4 kB / 492.3 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.1454, allocations: 7.984 kB / 492.3 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1454, allocations: 0 / 492.3 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000614/0.1461, allocations: 491.2 kB / 492.8 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.436e-05/0.1462, allocations: 112.7 kB / 492.9 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.1462, allocations: 7.938 kB / 492.9 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.1465, allocations: 23.97 kB / 493 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.347e-05/0.1465, allocations: 19.94 kB / 493 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.1466, allocations: 7.938 kB / 493 MB, free: 9.223 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002377/0.1468, allocations: 235.2 kB / 493.2 MB, free: 9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1468, allocations: 0 / 493.2 MB, free: 9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003978/0.1472, allocations: 71.84 kB / 493.3 MB, free: 8.93 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.00102/0.1482, allocations: 1.428 MB / 494.7 MB, free: 7.438 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005409/0.1488, allocations: 212 kB / 494.9 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1488, allocations: 0 / 494.9 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00023/0.149, allocations: 88.39 kB / 495 MB, free: 7.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.1493, allocations: 25.33 kB / 495 MB, free: 7.117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00352/0.1529, allocations: 3.584 MB / 498.6 MB, free: 3.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.1533, allocations: 0.7794 MB / 499.4 MB, free: 2.605 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001205/0.1534, allocations: 29.92 kB / 499.4 MB, free: 2.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.1535, allocations: 103.4 kB / 499.5 MB, free: 2.469 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1535, allocations: 0 / 499.5 MB, free: 2.469 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.1686, allocations: 4.398 MB / 0.4921 GB, free: 14.19 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/0.1688, allocations: 174.1 kB / 0.4923 GB, free: 13.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.846/2.015, allocations: 0 / 0.4923 GB, free: 13.95 MB / 382.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