Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadModel(Modelica): time 1.08/1.08, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.837e-05/1.852e-05, allocations: 0 / 154.3 MB, free: 13.12 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1383, allocations: 25.15 MB / 179.4 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06523/0.2036, allocations: 42.25 MB / 221.7 MB, free: 6.848 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.2038, allocations: 63.97 kB / 221.7 MB, free: 6.785 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2638/0.4677, allocations: 35.02 MB / 256.8 MB, free: 46.78 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.822e-06/0.4677, allocations: 0 / 256.8 MB, free: 46.78 MB / 202.7 MB Notification: Performance of Transformations before backend: time 4.612e-05/0.4678, allocations: 17.12 kB / 256.8 MB, free: 46.78 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.00252/0.4703, allocations: 1.112 MB / 257.9 MB, free: 46.16 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.4704, allocations: 10.34 kB / 257.9 MB, free: 46.16 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002707/0.4707, allocations: 118 kB / 258 MB, free: 46.1 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.4717, allocations: 0.5744 MB / 258.6 MB, free: 45.8 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.4719, allocations: 84.19 kB / 258.7 MB, free: 45.78 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001739/0.4721, allocations: 96.78 kB / 258.8 MB, free: 45.75 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/0.474, allocations: 0.9222 MB / 259.7 MB, free: 45.34 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.448e-05/0.4741, allocations: 3.906 kB / 259.7 MB, free: 45.33 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.4742, allocations: 35.28 kB / 259.7 MB, free: 45.3 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.045e-05/0.4743, allocations: 25.34 kB / 259.8 MB, free: 45.3 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.4761, allocations: 0.7528 MB / 260.5 MB, free: 45.01 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006451/0.4825, allocations: 3.503 MB / 264 MB, free: 42.83 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/0.484, allocations: 0.7521 MB / 264.8 MB, free: 42.23 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009337/0.485, allocations: 439.8 kB / 265.2 MB, free: 41.8 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.634e-05/0.4851, allocations: 12.56 kB / 265.2 MB, free: 41.79 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.4851, allocations: 47.72 kB / 265.3 MB, free: 41.73 MB / 202.7 MB Notification: Performance of pre-optimization done (n=91): time 4.481e-06/0.4852, allocations: 0 / 265.3 MB, free: 41.73 MB / 202.7 MB Notification: Performance of matching and sorting (n=127): time 0.0107/0.4959, allocations: 4.181 MB / 269.4 MB, free: 37.38 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.4959, allocations: 90.33 kB / 269.5 MB, free: 37.27 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008372/0.4968, allocations: 0.5244 MB / 270 MB, free: 36.73 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.4969, allocations: 45.7 kB / 270.1 MB, free: 36.68 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000206/0.4971, allocations: 438.8 kB / 270.5 MB, free: 36.25 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003058/0.4974, allocations: 433 kB / 270.9 MB, free: 35.83 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.766e-05/0.4975, allocations: 24 kB / 271 MB, free: 35.81 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 9.399e-05/0.4976, allocations: 358.8 kB / 271.3 MB, free: 35.45 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000825/0.4985, allocations: 362.6 kB / 271.7 MB, free: 35.09 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008968/0.4994, allocations: 0.4928 MB / 272.2 MB, free: 34.57 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008844/0.5003, allocations: 415.9 kB / 272.6 MB, free: 34.16 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.842e-06/0.5003, allocations: 7.953 kB / 272.6 MB, free: 34.16 MB / 202.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002459/0.5028, allocations: 1.133 MB / 273.7 MB, free: 33.01 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.5028, allocations: 21.48 kB / 273.7 MB, free: 32.99 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.5029, allocations: 4 kB / 273.7 MB, free: 32.98 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000569/0.5034, allocations: 146.5 kB / 273.9 MB, free: 32.83 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/0.505, allocations: 275.6 kB / 274.1 MB, free: 32.56 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004036/0.509, allocations: 4.776 MB / 278.9 MB, free: 27.41 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.5103, allocations: 84.03 kB / 279 MB, free: 27.32 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/0.5104, allocations: 51.97 kB / 279.1 MB, free: 27.27 MB / 202.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002789/0.5107, allocations: 178.3 kB / 279.2 MB, free: 27.1 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002327/0.511, allocations: 90.92 kB / 279.3 MB, free: 27.01 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.5128, allocations: 0.7714 MB / 280.1 MB, free: 26.22 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.5128, allocations: 12 kB / 280.1 MB, free: 26.21 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.5129, allocations: 7.984 kB / 280.1 MB, free: 26.2 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-05/0.5129, allocations: 3.984 kB / 280.1 MB, free: 26.2 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005579/0.5185, allocations: 2.917 MB / 283 MB, free: 23.18 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.5185, allocations: 4.312 kB / 283 MB, free: 23.18 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/0.52, allocations: 247.7 kB / 283.3 MB, free: 22.94 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005119/0.5206, allocations: 126.5 kB / 283.4 MB, free: 22.8 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.874e-05/0.5207, allocations: 31.98 kB / 283.4 MB, free: 22.77 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003352/0.524, allocations: 4.386 MB / 287.8 MB, free: 18.01 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.078e-06/0.5241, allocations: 7.938 kB / 287.8 MB, free: 18 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003522/0.5276, allocations: 1.904 MB / 289.7 MB, free: 15.98 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003269/0.528, allocations: 172.1 kB / 289.9 MB, free: 15.79 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001851/0.5282, allocations: 24 kB / 289.9 MB, free: 15.77 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.5292, allocations: 75.95 kB / 290 MB, free: 15.69 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001883/0.5294, allocations: 92.55 kB / 290.1 MB, free: 15.6 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.94e-05/0.5295, allocations: 39.98 kB / 290.1 MB, free: 15.56 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0006437/0.5302, allocations: 421.6 kB / 290.5 MB, free: 15.14 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.88e-07/0.5302, allocations: 0 / 290.5 MB, free: 15.14 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001332/0.5315, allocations: 271.9 kB / 290.8 MB, free: 14.88 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.mmf_PM.Phi,pmActuator.armature.stopper_xMin.v_rel,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 115 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002485/0.5318, allocations: 162.8 kB / 291 MB, free: 14.71 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002524/0.5343, allocations: 1.35 MB / 292.3 MB, free: 13.33 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.604e-06/0.5344, allocations: 4 kB / 292.3 MB, free: 13.32 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001583/0.536, allocations: 0.8982 MB / 293.2 MB, free: 12.39 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.5373, allocations: 178.6 kB / 293.4 MB, free: 12.23 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003697/0.541, allocations: 1.787 MB / 295.2 MB, free: 10.4 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005738/0.5416, allocations: 1.048 MB / 296.2 MB, free: 9.324 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004842/0.5421, allocations: 95.33 kB / 296.3 MB, free: 9.23 MB / 202.7 MB Notification: Performance of SimCode: time 1.75e-06/0.5421, allocations: 0 / 296.3 MB, free: 9.23 MB / 202.7 MB Notification: Performance of Templates: time 0.03573/0.5778, allocations: 26.07 MB / 322.4 MB, free: 15.16 MB / 234.7 MB