Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001125, allocations: 93.72 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 184.4 kB / 17.89 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.2 MB / 241.9 MB, free: 364 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2228/0.2228, allocations: 44.23 MB / 337.2 MB, free: 2.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003517, allocations: 8 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1229, allocations: 61.91 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.003219/0.1261, allocations: 2.541 MB / 474.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.1273, allocations: 0.6978 MB / 474.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.1275, allocations: 7.938 kB / 474.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.1276, allocations: 43.69 kB / 474.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.1278, allocations: 83.3 kB / 475 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.1281, allocations: 87.83 kB / 475.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003914/0.1285, allocations: 426.5 kB / 475.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002311/0.1287, allocations: 122.7 kB / 475.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.1289, allocations: 147.4 kB / 475.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.1292, allocations: 179.2 kB / 476 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.179e-05/0.1292, allocations: 20 kB / 476 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.708e-05/0.1293, allocations: 24 kB / 476 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.822e-05/0.1293, allocations: 63.75 kB / 476.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.682e-05/0.1294, allocations: 89.52 kB / 476.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002946/0.1297, allocations: 339 kB / 476.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.1297, allocations: 4 kB / 476.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1297, allocations: 0 / 476.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.1298, allocations: 0 / 476.5 MB, free: 8.781 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.001147/0.1309, allocations: 0.6432 MB / 477.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.131, allocations: 12.03 kB / 477.1 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.532e-05/0.1311, allocations: 74.53 kB / 477.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.629e-05/0.1311, allocations: 39.53 kB / 477.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.1315, allocations: 282.4 kB / 477.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.1315, allocations: 29 kB / 477.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.666e-05/0.1316, allocations: 36 kB / 477.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006391/0.1322, allocations: 354.5 kB / 477.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1322, allocations: 0 / 477.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.1323, allocations: 16 kB / 478 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.1323, allocations: 8 kB / 478 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000599/0.1329, allocations: 311.8 kB / 478.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001991/0.1349, allocations: 1.357 MB / 479.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.1354, allocations: 276.9 kB / 479.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003028/0.1357, allocations: 173.3 kB / 480.1 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.346e-05/0.1358, allocations: 4.281 kB / 480.1 MB, free: 4.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.1358, allocations: 34.84 kB / 480.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.723e-06/0.1358, allocations: 0 / 480.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008305/0.1366, allocations: 391.3 kB / 480.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.1367, allocations: 63.28 kB / 480.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.137, allocations: 258.7 kB / 480.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.137, allocations: 37.69 kB / 480.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1371, allocations: 199.9 kB / 481 MB, free: 3.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.645e-05/0.1372, allocations: 126.2 kB / 481.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.659e-05/0.1372, allocations: 8 kB / 481.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1374, allocations: 342.8 kB / 481.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.1376, allocations: 104.8 kB / 481.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003028/0.1379, allocations: 179.5 kB / 481.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002614/0.1382, allocations: 129.5 kB / 481.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1382, allocations: 0 / 481.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006455/0.1388, allocations: 375.1 kB / 482.3 MB, free: 2.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1389, allocations: 8 kB / 482.3 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.1389, allocations: 3.938 kB / 482.3 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1389, allocations: 4 kB / 482.3 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.1394, allocations: 103.8 kB / 482.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1394, allocations: 4 kB / 482.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.1396, allocations: 51.52 kB / 482.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.025e-05/0.1397, allocations: 19.98 kB / 482.5 MB, free: 2.508 MB / 350.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.0001503/0.1398, allocations: 150.3 kB / 482.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.959e-05/0.1399, allocations: 27.72 kB / 482.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006708/0.1406, allocations: 336.2 kB / 483 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1406, allocations: 8 kB / 483 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1406, allocations: 0 / 483 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1406, allocations: 0 / 483 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004803/0.1411, allocations: 405.2 kB / 483.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.1411, allocations: 0 / 483.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003922/0.1415, allocations: 87.88 kB / 483.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1415, allocations: 0 / 483.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.1416, allocations: 8 kB / 483.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.1416, allocations: 4 kB / 483.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1416, allocations: 0 / 483.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008269/0.1424, allocations: 0.526 MB / 484 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.1425, allocations: 132.6 kB / 484.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.42e-05/0.1426, allocations: 15.98 kB / 484.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.1428, allocations: 12 kB / 484.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.043e-05/0.1429, allocations: 19.95 kB / 484.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.1429, allocations: 15.98 kB / 484.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001669/0.1431, allocations: 185.9 kB / 484.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1431, allocations: 4.062 kB / 484.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003627/0.1434, allocations: 95.75 kB / 484.5 MB, free: 416 kB / 350.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.001207/0.1446, allocations: 1.071 MB / 485.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005597/0.1452, allocations: 283.6 kB / 485.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1452, allocations: 4 kB / 485.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002495/0.1455, allocations: 144.2 kB / 485.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.1459, allocations: 32.55 kB / 486 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003254/0.1491, allocations: 2.02 MB / 488 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003844/0.1495, allocations: 0.7835 MB / 488.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002104/0.1498, allocations: 34.94 kB / 488.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.1499, allocations: 111.4 kB / 488.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1499, allocations: 0 / 488.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0166/0.1666, allocations: 5.188 MB / 494.1 MB, free: 6.781 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002062/0.1668, allocations: 192.5 kB / 494.3 MB, free: 6.535 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.945/2.112, allocations: 0 / 494.3 MB, free: 6.535 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat does not exist to compare? outputFormat=mat