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.0008725/0.0008726, allocations: 96.64 kB / 17 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 194.2 kB / 17.91 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2164/0.2164, allocations: 45.92 MB / 344.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002928, allocations: 8 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1262, allocations: 63.47 MB / 481.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.003444/0.1297, allocations: 2.557 MB / 484.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.1311, allocations: 0.7329 MB / 484.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.1312, allocations: 7.938 kB / 484.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.1314, allocations: 43.69 kB / 485 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.1316, allocations: 83.3 kB / 485.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.1319, allocations: 91.83 kB / 485.2 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004077/0.1323, allocations: 422.7 kB / 485.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000262/0.1326, allocations: 126.7 kB / 485.7 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/0.1329, allocations: 151.4 kB / 485.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000235/0.1331, allocations: 175.2 kB / 486 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.364e-05/0.1332, allocations: 24 kB / 486 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.272e-05/0.1332, allocations: 20 kB / 486.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.519e-05/0.1333, allocations: 67.69 kB / 486.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.1334, allocations: 93.5 kB / 486.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003587/0.1338, allocations: 343 kB / 486.6 MB, free: 292 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.1338, allocations: 3.938 kB / 486.6 MB, free: 288 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1338, allocations: 0 / 486.6 MB, free: 288 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.916e-06/0.1338, allocations: 0 / 486.6 MB, free: 288 kB / 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.001332/0.1352, allocations: 0.6511 MB / 487.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1352, allocations: 8.031 kB / 487.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.736e-05/0.1353, allocations: 82.47 kB / 487.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002577/0.1356, allocations: 51.53 kB / 487.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.1359, allocations: 274.4 kB / 487.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.136, allocations: 29 kB / 487.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.639e-05/0.136, allocations: 36 kB / 487.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006116/0.1367, allocations: 346.5 kB / 488 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.1367, allocations: 11.92 kB / 488 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.1367, allocations: 12 kB / 488 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.1367, allocations: 15.95 kB / 488.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006236/0.1374, allocations: 311.8 kB / 488.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.1395, allocations: 1.349 MB / 489.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004795/0.14, allocations: 277.8 kB / 490 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002708/0.1403, allocations: 165.4 kB / 490.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.1404, allocations: 4.281 kB / 490.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.1404, allocations: 34.84 kB / 490.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.793e-06/0.1404, allocations: 0 / 490.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007803/0.1412, allocations: 399.2 kB / 490.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.1412, allocations: 63.3 kB / 490.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.1415, allocations: 262.7 kB / 490.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.1416, allocations: 29.7 kB / 490.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1417, allocations: 207.9 kB / 491.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.009e-05/0.1418, allocations: 118.3 kB / 491.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.886e-05/0.1418, allocations: 8 kB / 491.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1419, allocations: 342.8 kB / 491.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.1422, allocations: 104.8 kB / 491.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.1425, allocations: 175.5 kB / 491.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.1427, allocations: 133.5 kB / 492 MB, free: 10.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.1427, allocations: 0 / 492 MB, free: 10.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006438/0.1434, allocations: 375 kB / 492.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1434, allocations: 4 kB / 492.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1434, allocations: 4 kB / 492.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1435, allocations: 4 kB / 492.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004649/0.1439, allocations: 107.8 kB / 492.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.144, allocations: 7.953 kB / 492.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.1442, allocations: 51.61 kB / 492.5 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/0.1442, allocations: 12 kB / 492.5 MB, free: 9.996 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.0001477/0.1444, allocations: 145.8 kB / 492.7 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.375e-05/0.1444, allocations: 23.72 kB / 492.7 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006779/0.1451, allocations: 351.9 kB / 493 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1451, allocations: 7.938 kB / 493.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1452, allocations: 0 / 493.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.1452, allocations: 7.938 kB / 493.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004662/0.1456, allocations: 389.2 kB / 493.4 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1457, allocations: 0 / 493.4 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003981/0.1461, allocations: 87.88 kB / 493.5 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1461, allocations: 8 kB / 493.5 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.1461, allocations: 4 kB / 493.5 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1461, allocations: 0 / 493.5 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.1461, allocations: 7.984 kB / 493.5 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008422/0.147, allocations: 0.5228 MB / 494.1 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.1471, allocations: 132.6 kB / 494.2 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.1471, allocations: 4 kB / 494.2 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.1473, allocations: 15.98 kB / 494.2 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.818e-05/0.1474, allocations: 27.91 kB / 494.2 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1474, allocations: 12.06 kB / 494.3 MB, free: 8.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.1476, allocations: 194 kB / 494.4 MB, free: 7.984 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1476, allocations: 0 / 494.4 MB, free: 7.984 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003447/0.148, allocations: 91.75 kB / 494.5 MB, free: 7.895 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.001055/0.149, allocations: 1.083 MB / 495.6 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005625/0.1496, allocations: 287.6 kB / 495.9 MB, free: 6.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1496, allocations: 0 / 495.9 MB, free: 6.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.1499, allocations: 143.8 kB / 496 MB, free: 6.363 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.1502, allocations: 29 kB / 496.1 MB, free: 6.336 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.1531, allocations: 2.028 MB / 498.1 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.1535, allocations: 0.7835 MB / 498.9 MB, free: 3.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002023/0.1537, allocations: 38.95 kB / 498.9 MB, free: 3.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.1539, allocations: 111.4 kB / 499 MB, free: 3.281 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1539, allocations: 0 / 499 MB, free: 3.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01601/0.1699, allocations: 5.176 MB / 0.4924 GB, free: 14.25 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/0.1702, allocations: 182.9 kB / 0.4926 GB, free: 14.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.977/2.147, allocations: 0 / 0.4926 GB, free: 14.01 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