Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadModel(Modelica): time 1.88/1.88, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.000359, allocations: 16 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0808/0.08118, allocations: 44.51 MB / 308.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.007452/0.08868, allocations: 5.127 MB / 313.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004747/0.09347, allocations: 2.02 MB / 315.5 MB, free: 9.836 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.09457, allocations: 19.94 kB / 315.5 MB, free: 9.816 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007779/0.09536, allocations: 286.6 kB / 315.8 MB, free: 9.535 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001622/0.09701, allocations: 490.6 kB / 316.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000911/0.09794, allocations: 231.6 kB / 316.5 MB, free: 8.828 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001839/0.0998, allocations: 0.9437 MB / 317.5 MB, free: 7.883 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007511/0.1006, allocations: 386 kB / 317.8 MB, free: 7.488 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008719/0.1015, allocations: 458.3 kB / 318.3 MB, free: 7.039 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008634/0.1023, allocations: 0.5291 MB / 318.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001944/0.1026, allocations: 64 kB / 318.9 MB, free: 6.445 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002916/0.1029, allocations: 68 kB / 318.9 MB, free: 6.379 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002733/0.1031, allocations: 219.2 kB / 319.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003314/0.1035, allocations: 253.1 kB / 319.4 MB, free: 5.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002009/0.1055, allocations: 1.504 MB / 320.9 MB, free: 4.402 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.1055, allocations: 0 / 320.9 MB, free: 4.402 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.32e-06/0.1056, allocations: 0 / 320.9 MB, free: 4.402 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.308e-05/0.1056, allocations: 8 kB / 320.9 MB, free: 4.395 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003532/0.1091, allocations: 1.404 MB / 322.3 MB, free: 2.934 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.1092, allocations: 11.97 kB / 322.3 MB, free: 2.922 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003366/0.1095, allocations: 130.5 kB / 322.5 MB, free: 2.793 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001654/0.1112, allocations: 0.668 MB / 323.1 MB, free: 2.082 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.1114, allocations: 81.92 kB / 323.2 MB, free: 2.004 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002101/0.1116, allocations: 95.91 kB / 323.3 MB, free: 1.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002901/0.1145, allocations: 1.04 MB / 324.3 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.191e-05/0.1146, allocations: 0 / 324.3 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/0.1148, allocations: 36 kB / 324.4 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/0.1148, allocations: 27.95 kB / 324.4 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003258/0.1181, allocations: 0.9383 MB / 325.3 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008348/0.1265, allocations: 3.68 MB / 329 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004087/0.1306, allocations: 1.099 MB / 330.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.411e-05/0.1307, allocations: 8.188 kB / 330.1 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.388e-05/0.1308, allocations: 46.67 kB / 330.2 MB, free: 10.82 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 3.889e-06/0.1308, allocations: 0 / 330.2 MB, free: 10.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=67): time 0.006917/0.1377, allocations: 1.969 MB / 332.1 MB, free: 8.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.732e-05/0.1378, allocations: 85.11 kB / 332.2 MB, free: 8.738 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.1397, allocations: 0.9662 MB / 333.2 MB, free: 7.762 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.1399, allocations: 37.7 kB / 333.2 MB, free: 7.719 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005111/0.1404, allocations: 0.5284 MB / 333.8 MB, free: 7.184 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002776/0.1407, allocations: 224.8 kB / 334 MB, free: 6.961 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.778e-05/0.1408, allocations: 16 kB / 334 MB, free: 6.945 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.141, allocations: 342.8 kB / 334.3 MB, free: 6.602 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001394/0.1424, allocations: 381.8 kB / 334.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.144, allocations: 0.5577 MB / 335.3 MB, free: 5.598 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.1454, allocations: 452.8 kB / 335.7 MB, free: 5.148 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.296e-06/0.1455, allocations: 8 kB / 335.7 MB, free: 5.141 MB / 282.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003388/0.1489, allocations: 1.06 MB / 336.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.528e-05/0.149, allocations: 33.7 kB / 336.8 MB, free: 4.027 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.149, allocations: 4 kB / 336.8 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.201e-05/0.149, allocations: 15.95 kB / 336.8 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.1508, allocations: 327.5 kB / 337.1 MB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.161e-05/0.1508, allocations: 15.92 kB / 337.2 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.152, allocations: 91.94 kB / 337.2 MB, free: 3.582 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.1522, allocations: 31.98 kB / 337.3 MB, free: 3.551 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 1 * 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.0006663/0.1529, allocations: 285.6 kB / 337.6 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002628/0.1532, allocations: 94.88 kB / 337.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001402/0.1546, allocations: 430 kB / 338.1 MB, free: 2.734 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.1546, allocations: 7.953 kB / 338.1 MB, free: 2.727 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.169e-06/0.1546, allocations: 4 kB / 338.1 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.1546, allocations: 3.984 kB / 338.1 MB, free: 2.719 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00585/0.1605, allocations: 2.334 MB / 340.4 MB, free: 248 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.1606, allocations: 8 kB / 340.4 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/0.1617, allocations: 232.2 kB / 340.7 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.391e-05/0.1618, allocations: 19.98 kB / 340.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.481e-05/0.1619, allocations: 23.94 kB / 340.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.765e-05/0.1619, allocations: 11.94 kB / 340.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.158e-05/0.1619, allocations: 11.94 kB / 340.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.1644, allocations: 1.069 MB / 341.8 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000362/0.1648, allocations: 191.8 kB / 342 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/0.165, allocations: 16 kB / 342 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008465/0.1658, allocations: 67.95 kB / 342.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.166, allocations: 63.77 kB / 342.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.349e-05/0.1661, allocations: 31.98 kB / 342.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00131/0.1674, allocations: 0.663 MB / 342.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.05e-07/0.1674, allocations: 0 / 342.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001145/0.1686, allocations: 212 kB / 343 MB, free: 13.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 simulation (67): * Single equations (assignments): 67 * 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.0008455/0.1694, allocations: 273.3 kB / 343.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002671/0.1721, allocations: 0.8661 MB / 344.2 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/0.1722, allocations: 8.25 kB / 344.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.1734, allocations: 393 kB / 344.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.1747, allocations: 170 kB / 344.7 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004847/0.1796, allocations: 2.304 MB / 347 MB, free: 9.445 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009623/0.1806, allocations: 1.034 MB / 348 MB, free: 8.383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004632/0.1811, allocations: 79.34 kB / 348.1 MB, free: 8.305 MB / 298.7 MB Notification: Performance of SimCode: time 1.751e-06/0.1811, allocations: 4 kB / 348.1 MB, free: 8.301 MB / 298.7 MB Notification: Performance of Templates: time 0.0247/0.2058, allocations: 12.35 MB / 360.5 MB, free: 11.95 MB / 314.7 MB