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.ForceCurrentBehaviour.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.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadModel(Modelica): time 0.9802/0.9802, allocations: 111.2 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004337/0.000434, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04944/0.04991, allocations: 25.18 MB / 183.4 MB, free: 6.012 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.007623/0.05758, allocations: 4.782 MB / 188.2 MB, free: 1.215 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003936/0.06155, allocations: 1.731 MB / 189.9 MB, free: 15.48 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007421/0.06232, allocations: 19.94 kB / 190 MB, free: 15.46 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006662/0.06301, allocations: 278.7 kB / 190.2 MB, free: 15.19 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001267/0.06429, allocations: 458.8 kB / 190.7 MB, free: 14.74 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008733/0.06519, allocations: 223.6 kB / 190.9 MB, free: 14.52 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.001797/0.067, allocations: 0.9127 MB / 191.8 MB, free: 13.61 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007228/0.06774, allocations: 373.9 kB / 192.2 MB, free: 13.22 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008326/0.06859, allocations: 446.3 kB / 192.6 MB, free: 12.79 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007798/0.06939, allocations: 0.5291 MB / 193.1 MB, free: 12.25 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001672/0.06957, allocations: 60 kB / 193.2 MB, free: 12.2 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002359/0.06983, allocations: 68 kB / 193.3 MB, free: 12.13 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002523/0.07009, allocations: 207.2 kB / 193.5 MB, free: 11.93 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003191/0.07043, allocations: 245.1 kB / 193.7 MB, free: 11.68 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001888/0.07233, allocations: 1.453 MB / 195.2 MB, free: 10.22 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.644e-06/0.07235, allocations: 0 / 195.2 MB, free: 10.22 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.772e-06/0.07237, allocations: 0 / 195.2 MB, free: 10.22 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.0724, allocations: 0 / 195.2 MB, free: 10.22 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.00343/0.07584, allocations: 1.344 MB / 196.5 MB, free: 8.828 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.526e-05/0.0759, allocations: 8.031 kB / 196.5 MB, free: 8.82 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003031/0.07622, allocations: 130.4 kB / 196.6 MB, free: 8.691 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.0777, allocations: 0.6484 MB / 197.3 MB, free: 8 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.07789, allocations: 77.95 kB / 197.4 MB, free: 7.926 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.0781, allocations: 95.91 kB / 197.5 MB, free: 7.832 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002867/0.08098, allocations: 1.044 MB / 198.5 MB, free: 6.773 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.205e-05/0.08105, allocations: 8 kB / 198.5 MB, free: 6.766 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.08118, allocations: 40 kB / 198.6 MB, free: 6.727 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.695e-05/0.08122, allocations: 20 kB / 198.6 MB, free: 6.707 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002968/0.0842, allocations: 0.946 MB / 199.5 MB, free: 5.758 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007659/0.09188, allocations: 3.618 MB / 203.1 MB, free: 1.961 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004045/0.09595, allocations: 1.123 MB / 204.3 MB, free: 0.8203 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.258e-05/0.09604, allocations: 16.44 kB / 204.3 MB, free: 0.8047 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.0961, allocations: 39.03 kB / 204.3 MB, free: 0.7578 MB / 170.7 MB Notification: Performance of pre-optimization done (n=55): time 5.885e-06/0.09612, allocations: 7.984 kB / 204.3 MB, free: 0.75 MB / 170.7 MB Notification: Performance of matching and sorting (n=64): time 0.1402/0.2363, allocations: 2.079 MB / 206.4 MB, free: 23.02 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.085e-05/0.2364, allocations: 85.36 kB / 206.5 MB, free: 22.93 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/0.2395, allocations: 0.8744 MB / 207.4 MB, free: 22.79 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.2396, allocations: 36.33 kB / 207.4 MB, free: 22.76 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005388/0.2402, allocations: 0.5195 MB / 207.9 MB, free: 22.33 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.2405, allocations: 217.3 kB / 208.1 MB, free: 22.17 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.2407, allocations: 18.75 kB / 208.1 MB, free: 22.15 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.2408, allocations: 340.9 kB / 208.5 MB, free: 21.83 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002546/0.2434, allocations: 404.5 kB / 208.9 MB, free: 21.72 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002742/0.2462, allocations: 0.5596 MB / 209.4 MB, free: 21.43 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/0.2488, allocations: 449.1 kB / 209.9 MB, free: 21.27 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.2489, allocations: 1.375 kB / 209.9 MB, free: 21.27 MB / 170.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.006085/0.255, allocations: 1.06 MB / 210.9 MB, free: 20.91 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.128e-05/0.2551, allocations: 6.906 kB / 210.9 MB, free: 20.91 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/0.2551, allocations: 5.094 kB / 210.9 MB, free: 20.91 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.607e-05/0.2552, allocations: 9.359 kB / 210.9 MB, free: 20.91 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003088/0.2583, allocations: 317 kB / 211.3 MB, free: 20.88 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.044e-05/0.2584, allocations: 10.03 kB / 211.3 MB, free: 20.88 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002067/0.2604, allocations: 90.64 kB / 211.4 MB, free: 20.86 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.2607, allocations: 35.66 kB / 211.4 MB, free: 20.86 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 5 (comparisonWithFEA.tableID,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 (105): * Single equations (assignments): 105 * 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 prepare postOptimizeDAE: time 0.001021/0.2617, allocations: 282.3 kB / 211.7 MB, free: 20.64 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004419/0.2622, allocations: 92.66 kB / 211.8 MB, free: 20.6 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002668/0.2649, allocations: 495.9 kB / 212.2 MB, free: 20.42 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.006e-05/0.2649, allocations: 14.72 kB / 212.3 MB, free: 20.41 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.265, allocations: 1.375 kB / 212.3 MB, free: 20.41 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.12e-05/0.265, allocations: 3.281 kB / 212.3 MB, free: 20.41 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009513/0.2745, allocations: 2.308 MB / 214.6 MB, free: 19.15 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/0.2746, allocations: 8.594 kB / 214.6 MB, free: 19.15 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/0.2766, allocations: 225.9 kB / 214.8 MB, free: 19.13 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.518e-05/0.2767, allocations: 7.906 kB / 214.8 MB, free: 19.13 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.2768, allocations: 23.45 kB / 214.8 MB, free: 19.12 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.159e-05/0.2769, allocations: 11.88 kB / 214.8 MB, free: 19.12 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.349e-05/0.2769, allocations: 7.5 kB / 214.8 MB, free: 19.12 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00398/0.2809, allocations: 1.11 MB / 216 MB, free: 18.43 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005349/0.2815, allocations: 182.2 kB / 216.1 MB, free: 18.27 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.2818, allocations: 20 kB / 216.2 MB, free: 18.26 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/0.2838, allocations: 61.44 kB / 216.2 MB, free: 18.25 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000254/0.284, allocations: 61.38 kB / 216.3 MB, free: 18.23 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000151/0.2842, allocations: 27.27 kB / 216.3 MB, free: 18.22 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.002264/0.2865, allocations: 0.6017 MB / 216.9 MB, free: 17.89 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.345e-06/0.2866, allocations: 1.375 kB / 216.9 MB, free: 17.89 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.002209/0.2888, allocations: 201 kB / 217.1 MB, free: 17.87 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 1 (comparisonWithFEA.tableID) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005709/0.2894, allocations: 169.6 kB / 217.3 MB, free: 17.74 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.004757/0.2942, allocations: 0.8459 MB / 218.1 MB, free: 17.39 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/0.2942, allocations: 2.156 kB / 218.1 MB, free: 17.39 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002151/0.2964, allocations: 410.5 kB / 218.5 MB, free: 17.21 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/0.2989, allocations: 189.4 kB / 218.7 MB, free: 17.12 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00678/0.3058, allocations: 2.222 MB / 220.9 MB, free: 15.34 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.3068, allocations: 1.025 MB / 221.9 MB, free: 14.29 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007732/0.3076, allocations: 79.41 kB / 222 MB, free: 14.21 MB / 170.7 MB Notification: Performance of SimCode: time 2.337e-06/0.3076, allocations: 4 kB / 222 MB, free: 14.21 MB / 170.7 MB Notification: Performance of Templates: time 0.03598/0.3436, allocations: 12.14 MB / 234.2 MB, free: 2.105 MB / 170.7 MB