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.001637/0.001637, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002046/0.002046, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2144/0.2144, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 77 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1315, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.005951/0.1375, allocations: 3.015 MB / 483.2 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001975/0.1395, allocations: 0.7637 MB / 483.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003882/0.1399, allocations: 11.94 kB / 483.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002669/0.1402, allocations: 59.38 kB / 484 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004182/0.1406, allocations: 99.11 kB / 484.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.1411, allocations: 123.7 kB / 484.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006953/0.1418, allocations: 466.7 kB / 484.7 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003405/0.1422, allocations: 152 kB / 484.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000435/0.1426, allocations: 191.3 kB / 485 MB, free: 324 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000345/0.143, allocations: 215 kB / 485.2 MB, free: 108 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.89e-05/0.1431, allocations: 39.94 kB / 485.2 MB, free: 68 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.1432, allocations: 44 kB / 485.3 MB, free: 24 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1433, allocations: 87.81 kB / 485.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002516/0.1436, allocations: 199 kB / 485.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005653/0.1442, allocations: 466.2 kB / 486 MB, free: 15.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1442, allocations: 0 / 486 MB, free: 15.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1442, allocations: 0 / 486 MB, free: 15.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.26e-05/0.1442, allocations: 0 / 486 MB, free: 15.29 MB / 366.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.00168/0.1459, allocations: 0.7097 MB / 486.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.146, allocations: 8.031 kB / 486.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001069/0.1461, allocations: 74.72 kB / 486.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002824/0.1464, allocations: 60.39 kB / 486.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.1468, allocations: 287.5 kB / 487.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.197e-05/0.1468, allocations: 33.36 kB / 487.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.354e-05/0.1469, allocations: 36.38 kB / 487.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006645/0.1476, allocations: 350.6 kB / 487.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.1476, allocations: 0 / 487.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.1476, allocations: 16 kB / 487.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.1477, allocations: 8 kB / 487.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000673/0.1483, allocations: 303.8 kB / 487.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.1507, allocations: 1.337 MB / 489.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005179/0.1512, allocations: 285.7 kB / 489.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003025/0.1515, allocations: 153.4 kB / 489.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.1516, allocations: 4.281 kB / 489.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.1516, allocations: 38.84 kB / 489.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.994e-06/0.1516, allocations: 0 / 489.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009264/0.1526, allocations: 379.3 kB / 490.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.1526, allocations: 59.34 kB / 490.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.153, allocations: 258.7 kB / 490.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.288e-05/0.153, allocations: 33.7 kB / 490.4 MB, free: 10.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.1532, allocations: 207.8 kB / 490.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.1533, allocations: 118.3 kB / 490.7 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.1534, allocations: 74.02 kB / 490.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1536, allocations: 342.8 kB / 491.1 MB, free: 9.902 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.1539, allocations: 100.8 kB / 491.2 MB, free: 9.805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002975/0.1542, allocations: 175.5 kB / 491.4 MB, free: 9.609 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005503/0.1547, allocations: 292.6 kB / 491.7 MB, free: 9.301 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1548, allocations: 11.88 kB / 491.7 MB, free: 9.289 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006662/0.1554, allocations: 354 kB / 492 MB, free: 8.938 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.1555, allocations: 8 kB / 492.1 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1555, allocations: 0 / 492.1 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.1555, allocations: 4 kB / 492.1 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004905/0.156, allocations: 108 kB / 492.2 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.156, allocations: 4 kB / 492.2 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000286/0.1563, allocations: 47.52 kB / 492.2 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/0.1564, allocations: 23.97 kB / 492.2 MB, free: 8.746 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001932/0.1566, allocations: 145.7 kB / 492.4 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.1566, allocations: 31.62 kB / 492.4 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006732/0.1573, allocations: 332 kB / 492.7 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.1573, allocations: 7.938 kB / 492.7 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.1573, allocations: 0 / 492.7 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1574, allocations: 0 / 492.7 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004457/0.1578, allocations: 409.1 kB / 493.1 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1578, allocations: 0 / 493.1 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003977/0.1582, allocations: 83.88 kB / 493.2 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.1582, allocations: 0 / 493.2 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.1583, allocations: 8 kB / 493.2 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.1583, allocations: 0 / 493.2 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1583, allocations: 4 kB / 493.2 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008929/0.1592, allocations: 0.5104 MB / 493.7 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.1593, allocations: 136.6 kB / 493.9 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.367e-05/0.1594, allocations: 7.984 kB / 493.9 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.1596, allocations: 8.062 kB / 493.9 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.225e-05/0.1597, allocations: 27.97 kB / 493.9 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.1597, allocations: 7.984 kB / 493.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001819/0.1599, allocations: 190 kB / 494.1 MB, free: 6.762 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1599, allocations: 0 / 494.1 MB, free: 6.762 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003842/0.1603, allocations: 91.75 kB / 494.2 MB, free: 6.672 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001276/0.1616, allocations: 1.064 MB / 495.3 MB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006475/0.1622, allocations: 295.8 kB / 495.6 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1622, allocations: 0 / 495.6 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002451/0.1625, allocations: 140.3 kB / 495.7 MB, free: 5.156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.1629, allocations: 36.44 kB / 495.7 MB, free: 5.121 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004132/0.167, allocations: 3.152 MB / 498.9 MB, free: 1.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.1674, allocations: 0.7835 MB / 499.7 MB, free: 1.031 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.1676, allocations: 38.94 kB / 499.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.1678, allocations: 115.3 kB / 499.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1678, allocations: 0 / 499.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.1925, allocations: 5.583 MB / 0.4936 GB, free: 11.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.882/8.074, allocations: 10.03 kB / 0.4936 GB, free: 11.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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches