Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008908/0.0008908, allocations: 98.62 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009567/0.0009567, allocations: 201.3 kB / 17.9 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2093/0.2093, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002989/0.0002995, allocations: 4 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1372, allocations: 63.48 MB / 481.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.003578/0.1408, allocations: 2.413 MB / 484 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.1426, allocations: 0.7564 MB / 484.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003385/0.143, allocations: 7.938 kB / 484.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.1431, allocations: 39.69 kB / 484.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004152/0.1435, allocations: 127.6 kB / 484.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.1439, allocations: 83.84 kB / 485 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005113/0.1444, allocations: 307.8 kB / 485.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.1447, allocations: 118.7 kB / 485.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003045/0.145, allocations: 155.5 kB / 485.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.1452, allocations: 175.2 kB / 485.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.207e-05/0.1453, allocations: 20 kB / 485.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.042e-05/0.1454, allocations: 20 kB / 485.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.7e-05/0.1455, allocations: 63.73 kB / 485.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.944e-05/0.1456, allocations: 93.52 kB / 485.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003181/0.1459, allocations: 339 kB / 486.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1459, allocations: 0 / 486.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1459, allocations: 4 kB / 486.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.146, allocations: 0 / 486.2 MB, free: 0.5234 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001454/0.1474, allocations: 0.6472 MB / 486.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.1475, allocations: 8.031 kB / 486.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000149/0.1476, allocations: 78.48 kB / 487 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.148, allocations: 59.52 kB / 487 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004405/0.1484, allocations: 282.3 kB / 487.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/0.1485, allocations: 29 kB / 487.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-05/0.1485, allocations: 40 kB / 487.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006573/0.1492, allocations: 338.5 kB / 487.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1492, allocations: 0 / 487.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.1492, allocations: 16 kB / 487.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.1493, allocations: 15.95 kB / 487.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00062/0.1499, allocations: 311.8 kB / 488 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002238/0.1522, allocations: 1.345 MB / 489.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005196/0.1527, allocations: 277.8 kB / 489.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.1527, allocations: 4.281 kB / 489.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.1528, allocations: 34.84 kB / 489.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.585e-06/0.1528, allocations: 0 / 489.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008286/0.1536, allocations: 395.9 kB / 490.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.1537, allocations: 59.39 kB / 490.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.1539, allocations: 262.6 kB / 490.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.154, allocations: 37.7 kB / 490.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.1541, allocations: 199.9 kB / 490.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.37e-05/0.1542, allocations: 118.3 kB / 490.7 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.762e-05/0.1542, allocations: 8 kB / 490.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1544, allocations: 342.8 kB / 491.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.1546, allocations: 104.8 kB / 491.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.1549, allocations: 179.5 kB / 491.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.1552, allocations: 125.6 kB / 491.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1552, allocations: 0 / 491.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006501/0.1559, allocations: 382.8 kB / 491.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.1559, allocations: 8 kB / 491.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1559, allocations: 0 / 491.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.1559, allocations: 7.984 kB / 491.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004886/0.1564, allocations: 103.9 kB / 492 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1565, allocations: 12.16 kB / 492 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.1567, allocations: 47.48 kB / 492 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.036e-05/0.1568, allocations: 19.98 kB / 492 MB, free: 10.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 47 * 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.0001573/0.1569, allocations: 145.8 kB / 492.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.278e-05/0.157, allocations: 27.72 kB / 492.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006382/0.1576, allocations: 340 kB / 492.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.1577, allocations: 4 kB / 492.5 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1577, allocations: 3.938 kB / 492.6 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.1577, allocations: 7.984 kB / 492.6 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004582/0.1581, allocations: 401.2 kB / 493 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1581, allocations: 0 / 493 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004318/0.1586, allocations: 83.94 kB / 493 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.1586, allocations: 0 / 493 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.1586, allocations: 15.94 kB / 493 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1586, allocations: 0 / 493 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1586, allocations: 0 / 493 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008634/0.1595, allocations: 0.5267 MB / 493.6 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.1597, allocations: 132.6 kB / 493.7 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.551e-05/0.1597, allocations: 8 kB / 493.7 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.1599, allocations: 15.98 kB / 493.7 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.955e-05/0.16, allocations: 24.03 kB / 493.8 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.16, allocations: 12 kB / 493.8 MB, free: 8.586 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000189/0.1602, allocations: 186 kB / 493.9 MB, free: 8.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1602, allocations: 3.938 kB / 493.9 MB, free: 8.398 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000368/0.1606, allocations: 91.75 kB / 494 MB, free: 8.309 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * 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 (35): * Single equations (assignments): 35 * 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.00119/0.1618, allocations: 1.087 MB / 495.1 MB, free: 7.195 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006005/0.1624, allocations: 283.6 kB / 495.4 MB, free: 6.918 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.1624, allocations: 0 / 495.4 MB, free: 6.918 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002644/0.1627, allocations: 143.8 kB / 495.5 MB, free: 6.777 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.163, allocations: 27.03 kB / 495.6 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.1668, allocations: 3.076 MB / 498.6 MB, free: 3.598 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.1671, allocations: 0.7913 MB / 499.4 MB, free: 2.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.1673, allocations: 38.94 kB / 499.5 MB, free: 2.742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.1675, allocations: 111.4 kB / 499.6 MB, free: 2.633 MB / 366.1 MB Notification: Performance of SimCode: time 1.302e-06/0.1675, allocations: 4 kB / 499.6 MB, free: 2.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.1897, allocations: 5.154 MB / 0.4929 GB, free: 13.61 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004086/0.1902, allocations: 176.1 kB / 0.4931 GB, free: 13.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.025, allocations: 4 kB / 0.4931 GB, free: 13.38 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat does not exist to compare? outputFormat=mat