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.001541/0.00154, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001784/0.001784, allocations: 208.6 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.47/1.47, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2851/0.2851, allocations: 46.11 MB / 344.2 MB, free: 11.61 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.00225/0.00225, allocations: 73.31 kB / 417.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1359, allocations: 62.46 MB / 480.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.005031/0.141, allocations: 3.015 MB / 483.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.1427, allocations: 0.7675 MB / 484 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.1429, allocations: 8 kB / 484 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.1431, allocations: 59.38 kB / 484.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.1433, allocations: 107 kB / 484.2 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.1437, allocations: 115.8 kB / 484.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005171/0.1442, allocations: 462.7 kB / 484.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/0.1445, allocations: 171.9 kB / 484.9 MB, free: 488 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003038/0.1448, allocations: 183.4 kB / 485.1 MB, free: 304 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/0.1451, allocations: 215 kB / 485.3 MB, free: 88 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.471e-05/0.1452, allocations: 40 kB / 485.3 MB, free: 48 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.818e-05/0.1453, allocations: 40 kB / 485.4 MB, free: 8 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.1454, allocations: 87.81 kB / 485.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002275/0.1457, allocations: 206.9 kB / 485.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005737/0.1462, allocations: 466.2 kB / 486.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1463, allocations: 0 / 486.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1463, allocations: 4 kB / 486.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1463, allocations: 0 / 486.1 MB, free: 15.26 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.00163/0.1479, allocations: 0.7079 MB / 486.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.148, allocations: 8.031 kB / 486.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001326/0.1481, allocations: 82.64 kB / 486.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002908/0.1484, allocations: 56.45 kB / 487 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004221/0.1489, allocations: 279.5 kB / 487.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.1489, allocations: 29.38 kB / 487.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-05/0.149, allocations: 40.38 kB / 487.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007632/0.1498, allocations: 350.5 kB / 487.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.1498, allocations: 0 / 487.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.37e-05/0.1499, allocations: 16 kB / 487.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.168e-05/0.1499, allocations: 8 kB / 487.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000677/0.1506, allocations: 307.8 kB / 488 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.1531, allocations: 1.333 MB / 489.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006468/0.1537, allocations: 281.7 kB / 489.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.1541, allocations: 157.4 kB / 489.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.1541, allocations: 8.281 kB / 489.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.1541, allocations: 34.84 kB / 489.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.563e-06/0.1541, allocations: 0 / 489.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008645/0.155, allocations: 379.2 kB / 490.1 MB, free: 11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.1551, allocations: 59.34 kB / 490.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.1554, allocations: 262.7 kB / 490.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.1554, allocations: 33.7 kB / 490.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.1556, allocations: 203.9 kB / 490.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.1557, allocations: 122.3 kB / 490.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.1559, allocations: 70.03 kB / 490.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.1561, allocations: 342.8 kB / 491.2 MB, free: 9.883 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.1563, allocations: 100.8 kB / 491.3 MB, free: 9.785 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003043/0.1566, allocations: 175.5 kB / 491.5 MB, free: 9.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005617/0.1572, allocations: 288.6 kB / 491.8 MB, free: 9.285 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1572, allocations: 3.938 kB / 491.8 MB, free: 9.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007243/0.1579, allocations: 366 kB / 492.1 MB, free: 8.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.158, allocations: 8 kB / 492.1 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.158, allocations: 0 / 492.1 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.158, allocations: 4 kB / 492.1 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005029/0.1585, allocations: 107.9 kB / 492.2 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.1585, allocations: 4 kB / 492.3 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.1588, allocations: 39.53 kB / 492.3 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.392e-05/0.1589, allocations: 20.14 kB / 492.3 MB, free: 8.738 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.0001963/0.1591, allocations: 153.7 kB / 492.5 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.684e-05/0.1592, allocations: 35.56 kB / 492.5 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007266/0.1599, allocations: 328.1 kB / 492.8 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.1599, allocations: 4 kB / 492.8 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1599, allocations: 0 / 492.8 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1599, allocations: 3.984 kB / 492.8 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005647/0.1605, allocations: 413 kB / 493.2 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1605, allocations: 0 / 493.2 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/0.161, allocations: 83.88 kB / 493.3 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.161, allocations: 0 / 493.3 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.161, allocations: 8 kB / 493.3 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.161, allocations: 0 / 493.3 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.161, allocations: 0 / 493.3 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009701/0.162, allocations: 0.5182 MB / 493.8 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.1621, allocations: 128.7 kB / 494 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.636e-05/0.1622, allocations: 8 kB / 494 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.1624, allocations: 11.98 kB / 494 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.1625, allocations: 23.97 kB / 494 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.1625, allocations: 4 kB / 494 MB, free: 6.934 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002138/0.1627, allocations: 194 kB / 494.2 MB, free: 6.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1628, allocations: 4.062 kB / 494.2 MB, free: 6.742 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003669/0.1631, allocations: 91.75 kB / 494.3 MB, free: 6.652 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.001275/0.1644, allocations: 1.06 MB / 495.3 MB, free: 5.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007119/0.1651, allocations: 295.9 kB / 495.6 MB, free: 5.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1652, allocations: 0 / 495.6 MB, free: 5.277 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002762/0.1654, allocations: 139.8 kB / 495.8 MB, free: 5.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.1659, allocations: 24.56 kB / 495.8 MB, free: 5.117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004654/0.1705, allocations: 3.152 MB / 498.9 MB, free: 1.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.171, allocations: 0.7912 MB / 499.7 MB, free: 1.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002123/0.1712, allocations: 38.88 kB / 499.8 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001845/0.1714, allocations: 115.4 kB / 499.9 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1714, allocations: 0 / 499.9 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03028/0.2017, allocations: 5.596 MB / 0.4936 GB, free: 11.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.44/7.642, allocations: 13.33 kB / 0.4937 GB, free: 11.36 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 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)