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.0009609/0.0009609, allocations: 98.11 kB / 16.99 MB, free: 6.402 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.0008946/0.0008946, allocations: 178.7 kB / 17.88 MB, free: 5.957 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.388/1.388, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.189/0.189, allocations: 44.21 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003543, allocations: 8 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1239, allocations: 61.91 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.003496/0.1275, allocations: 2.405 MB / 474 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.129, allocations: 0.7175 MB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.1292, allocations: 7.938 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.697e-05/0.1292, allocations: 39.67 kB / 474.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002386/0.1295, allocations: 115.7 kB / 474.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.1297, allocations: 83.83 kB / 474.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003514/0.1301, allocations: 307.7 kB / 475.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.1303, allocations: 122.7 kB / 475.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002071/0.1305, allocations: 151.4 kB / 475.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002081/0.1307, allocations: 175.3 kB / 475.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.426e-05/0.1308, allocations: 20 kB / 475.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.912e-05/0.1308, allocations: 20 kB / 475.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.534e-05/0.1309, allocations: 71.67 kB / 475.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.603e-05/0.131, allocations: 89.52 kB / 475.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003016/0.1313, allocations: 339 kB / 476.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1313, allocations: 0 / 476.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1313, allocations: 0 / 476.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.1313, allocations: 0 / 476.2 MB, free: 8.977 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.001268/0.1326, allocations: 0.6511 MB / 476.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.1327, allocations: 8.031 kB / 476.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/0.1328, allocations: 74.53 kB / 476.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.932e-05/0.1329, allocations: 43.53 kB / 477 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.1333, allocations: 282.3 kB / 477.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.1334, allocations: 28.94 kB / 477.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.033e-05/0.1334, allocations: 40 kB / 477.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006817/0.1341, allocations: 342.5 kB / 477.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1342, allocations: 0 / 477.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.1342, allocations: 16 kB / 477.6 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.1342, allocations: 8 kB / 477.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005988/0.1348, allocations: 315.8 kB / 478 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/0.1371, allocations: 1.349 MB / 479.3 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005175/0.1377, allocations: 280.9 kB / 479.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.1377, allocations: 8.266 kB / 479.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.1377, allocations: 38.84 kB / 479.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.392e-06/0.1377, allocations: 0 / 479.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009257/0.1387, allocations: 391.8 kB / 480 MB, free: 4.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.1387, allocations: 55.41 kB / 480.1 MB, free: 4.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.139, allocations: 262.7 kB / 480.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.1391, allocations: 33.7 kB / 480.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.1393, allocations: 199.9 kB / 480.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.994e-05/0.1394, allocations: 126.2 kB / 480.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.1394, allocations: 4 kB / 480.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1395, allocations: 346.8 kB / 481 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002555/0.1398, allocations: 112.8 kB / 481.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003817/0.1402, allocations: 175.5 kB / 481.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002646/0.1405, allocations: 137.5 kB / 481.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1405, allocations: 0 / 481.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000656/0.1411, allocations: 370.9 kB / 481.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.1412, allocations: 8.219 kB / 481.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.1412, allocations: 4 kB / 481.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.1412, allocations: 4 kB / 481.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/0.1417, allocations: 99.88 kB / 481.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.1417, allocations: 4 kB / 481.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.142, allocations: 51.52 kB / 482 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.142, allocations: 15.98 kB / 482 MB, free: 2.875 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.0001562/0.1422, allocations: 158.2 kB / 482.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.1422, allocations: 23.72 kB / 482.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006784/0.1429, allocations: 332.3 kB / 482.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.1429, allocations: 8 kB / 482.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.143, allocations: 0 / 482.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.143, allocations: 0 / 482.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004964/0.1435, allocations: 397.2 kB / 482.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.1435, allocations: 7.953 kB / 482.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004244/0.1439, allocations: 87.86 kB / 483 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.1439, allocations: 4 kB / 483 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.144, allocations: 4 kB / 483 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.144, allocations: 4 kB / 483 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.144, allocations: 4 kB / 483 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008936/0.1449, allocations: 0.5337 MB / 483.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.145, allocations: 140.5 kB / 483.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.371e-05/0.1451, allocations: 8 kB / 483.7 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.1453, allocations: 12 kB / 483.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.1454, allocations: 23.97 kB / 483.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.1454, allocations: 7.984 kB / 483.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.1456, allocations: 186 kB / 483.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1456, allocations: 0 / 483.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003804/0.146, allocations: 95.81 kB / 484 MB, free: 0.7695 MB / 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.001201/0.1472, allocations: 1.067 MB / 485 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006078/0.1478, allocations: 291.9 kB / 485.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1478, allocations: 4.062 kB / 485.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002481/0.1481, allocations: 136.3 kB / 485.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.1484, allocations: 28.48 kB / 485.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.1519, allocations: 3.082 MB / 488.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.1523, allocations: 0.7913 MB / 489.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002013/0.1525, allocations: 42.94 kB / 489.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/0.1527, allocations: 111.4 kB / 489.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1527, allocations: 3.938 kB / 489.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01631/0.169, allocations: 5.159 MB / 494.7 MB, free: 6.078 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.1693, allocations: 174.1 kB / 494.9 MB, free: 5.844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/1.991, allocations: 0 / 494.9 MB, free: 5.844 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