Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.00129/0.00129, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, 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 4.1.0-beta.om/package.mo): time 0.2864/0.2864, allocations: 46.1 MB / 344.2 MB, free: 11.58 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002352/0.002352, allocations: 80.64 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1369, allocations: 62.44 MB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.005016/0.1419, allocations: 3.015 MB / 483.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.1434, allocations: 0.7637 MB / 484 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.1436, allocations: 11.94 kB / 484 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.1438, allocations: 59.38 kB / 484.1 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.1441, allocations: 103.1 kB / 484.2 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.1445, allocations: 119.7 kB / 484.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005338/0.145, allocations: 466.6 kB / 484.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003068/0.1453, allocations: 163.9 kB / 484.9 MB, free: 456 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003081/0.1456, allocations: 187.4 kB / 485.1 MB, free: 268 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002817/0.1459, allocations: 215 kB / 485.3 MB, free: 52 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.153e-05/0.146, allocations: 36 kB / 485.3 MB, free: 16 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.1461, allocations: 44.05 kB / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.886e-05/0.1462, allocations: 87.67 kB / 485.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002116/0.1465, allocations: 199 kB / 485.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000529/0.147, allocations: 470.3 kB / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.147, allocations: 0 / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.147, allocations: 0 / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.147, allocations: 0 / 486.1 MB, free: 15.23 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.001533/0.1486, allocations: 0.7097 MB / 486.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1486, allocations: 8.031 kB / 486.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.1488, allocations: 78.66 kB / 486.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.149, allocations: 56.45 kB / 487 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.1494, allocations: 279.5 kB / 487.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.1494, allocations: 33.38 kB / 487.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.1495, allocations: 36.38 kB / 487.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006605/0.1502, allocations: 346.6 kB / 487.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.1502, allocations: 0 / 487.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.1502, allocations: 16 kB / 487.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.1503, allocations: 8 kB / 487.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006478/0.1509, allocations: 303.8 kB / 488 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002346/0.1533, allocations: 1.349 MB / 489.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005447/0.1538, allocations: 281.7 kB / 489.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003123/0.1541, allocations: 153.4 kB / 489.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.1542, allocations: 4.281 kB / 489.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.1542, allocations: 42.84 kB / 489.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.964e-06/0.1542, allocations: 0 / 489.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008794/0.1551, allocations: 375.3 kB / 490.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.4e-05/0.1552, allocations: 59.34 kB / 490.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.1555, allocations: 258.7 kB / 490.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.997e-05/0.1556, allocations: 37.64 kB / 490.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.1557, allocations: 207.9 kB / 490.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.1558, allocations: 118.3 kB / 490.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.156, allocations: 70.03 kB / 490.9 MB, free: 10.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1561, allocations: 346.8 kB / 491.2 MB, free: 9.848 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/0.1564, allocations: 100.8 kB / 491.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000312/0.1567, allocations: 175.5 kB / 491.5 MB, free: 9.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00056/0.1573, allocations: 288.6 kB / 491.8 MB, free: 9.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.1573, allocations: 7.875 kB / 491.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007162/0.158, allocations: 362.2 kB / 492.1 MB, free: 8.883 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.335e-05/0.1581, allocations: 8 kB / 492.1 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1581, allocations: 0 / 492.1 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.1581, allocations: 4 kB / 492.1 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.1586, allocations: 103.8 kB / 492.2 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.1586, allocations: 4 kB / 492.2 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.1589, allocations: 43.52 kB / 492.3 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.558e-05/0.159, allocations: 19.98 kB / 492.3 MB, free: 8.703 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.000195/0.1592, allocations: 153.7 kB / 492.5 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.1593, allocations: 31.62 kB / 492.5 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000791/0.16, allocations: 332 kB / 492.8 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.1601, allocations: 4 kB / 492.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1601, allocations: 0 / 492.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1601, allocations: 0 / 492.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005547/0.1606, allocations: 409.1 kB / 493.2 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1607, allocations: 0 / 493.2 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004258/0.1611, allocations: 87.88 kB / 493.3 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.1611, allocations: 0 / 493.3 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.1611, allocations: 8 kB / 493.3 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.1611, allocations: 0 / 493.3 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1611, allocations: 0 / 493.3 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009392/0.1621, allocations: 0.5182 MB / 493.8 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.1623, allocations: 132.7 kB / 494 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.514e-05/0.1623, allocations: 7.984 kB / 494 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.1625, allocations: 8 kB / 494 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.378e-05/0.1626, allocations: 23.97 kB / 494 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.1626, allocations: 7.984 kB / 494 MB, free: 6.898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00021/0.1629, allocations: 194 kB / 494.2 MB, free: 6.711 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1629, allocations: 0 / 494.2 MB, free: 6.711 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003958/0.1633, allocations: 87.75 kB / 494.3 MB, free: 6.625 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.1646, allocations: 1.068 MB / 495.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007014/0.1653, allocations: 295.9 kB / 495.6 MB, free: 5.242 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1653, allocations: 0 / 495.6 MB, free: 5.242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002936/0.1656, allocations: 139.8 kB / 495.8 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.1659, allocations: 34.73 kB / 495.8 MB, free: 5.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004639/0.1706, allocations: 3.148 MB / 499 MB, free: 1.797 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.1711, allocations: 0.7874 MB / 499.7 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002483/0.1713, allocations: 42.92 kB / 499.8 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.1715, allocations: 107.4 kB / 499.9 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1715, allocations: 0 / 499.9 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.2018, allocations: 5.595 MB / 0.4936 GB, free: 11.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.925/8.127, allocations: 9.703 kB / 0.4936 GB, free: 11.34 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1)