Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadModel(Modelica): time 1.778/1.778, allocations: 171.3 MB / 179.2 MB, free: 8.184 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.498e-05/1.499e-05, allocations: 0 / 222.5 MB, free: 8.789 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 38.77 MB / 261.3 MB, free: 1.938 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3134/0.4252, allocations: 78.54 MB / 339.8 MB, free: 9.84 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.4255, allocations: 83.89 kB / 339.9 MB, free: 9.797 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08506/0.5106, allocations: 21.13 MB / 361 MB, free: 8.059 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.749e-06/0.5106, allocations: 0 / 361 MB, free: 8.059 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.553e-05/0.5107, allocations: 27.94 kB / 361.1 MB, free: 8.031 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003408/0.5141, allocations: 1.245 MB / 362.3 MB, free: 6.734 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.5142, allocations: 8.031 kB / 362.3 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004507/0.5147, allocations: 135.1 kB / 362.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.5164, allocations: 0.6406 MB / 363.1 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.5165, allocations: 53.98 kB / 363.1 MB, free: 5.855 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.5168, allocations: 56 kB / 363.2 MB, free: 5.801 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002096/0.5189, allocations: 0.7186 MB / 363.9 MB, free: 5.082 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00216/0.5211, allocations: 0.7941 MB / 364.7 MB, free: 4.273 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.805e-05/0.5211, allocations: 3.906 kB / 364.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.5213, allocations: 0 / 364.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.229e-05/0.5213, allocations: 24 kB / 364.7 MB, free: 4.246 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008817/0.5301, allocations: 3.668 MB / 368.4 MB, free: 396 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002619/0.5328, allocations: 0.803 MB / 369.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008734/0.5337, allocations: 350.7 kB / 369.6 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.564e-05/0.5338, allocations: 8.562 kB / 369.6 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.513e-05/0.5339, allocations: 55 kB / 369.6 MB, free: 15.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 4.716e-06/0.5339, allocations: 3.938 kB / 369.6 MB, free: 15.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.004298/0.5382, allocations: 1.386 MB / 371 MB, free: 13.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/0.5383, allocations: 85.55 kB / 371.1 MB, free: 13.65 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.5397, allocations: 0.6872 MB / 371.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.5399, allocations: 29.7 kB / 371.8 MB, free: 12.92 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004869/0.5404, allocations: 0.5247 MB / 372.3 MB, free: 12.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000321/0.5407, allocations: 279.9 kB / 372.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.65e-05/0.5408, allocations: 0 / 372.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.541, allocations: 350.8 kB / 372.9 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007598/0.5418, allocations: 286.6 kB / 373.2 MB, free: 11.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000888/0.5427, allocations: 434.4 kB / 373.6 MB, free: 11.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008104/0.5435, allocations: 319 kB / 374 MB, free: 10.7 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.529e-06/0.5435, allocations: 0 / 374 MB, free: 10.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002082/0.5456, allocations: 0.791 MB / 374.8 MB, free: 9.902 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.264e-05/0.5457, allocations: 33.7 kB / 374.8 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.5457, allocations: 4 kB / 374.8 MB, free: 9.859 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.334e-05/0.5458, allocations: 12.5 kB / 374.8 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001968/0.5478, allocations: 355.5 kB / 375.1 MB, free: 9.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.297e-05/0.5478, allocations: 15.98 kB / 375.2 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.5491, allocations: 99.91 kB / 375.3 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.5493, allocations: 35.98 kB / 375.3 MB, free: 9.352 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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.0002622/0.5496, allocations: 128.7 kB / 375.4 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.5499, allocations: 90.88 kB / 375.5 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.5515, allocations: 337.5 kB / 375.8 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.972e-05/0.5516, allocations: 8 kB / 375.8 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.165e-05/0.5516, allocations: 0 / 375.8 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.302e-05/0.5517, allocations: 3.984 kB / 375.9 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/0.5653, allocations: 2.664 MB / 378.5 MB, free: 5.922 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.885e-05/0.5654, allocations: 8 kB / 378.5 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003045/0.5685, allocations: 271.8 kB / 378.8 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.544e-05/0.5686, allocations: 16 kB / 378.8 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.5688, allocations: 19.94 kB / 378.8 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.897e-05/0.5689, allocations: 23.92 kB / 378.8 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-05/0.5689, allocations: 15.94 kB / 378.9 MB, free: 5.574 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004984/0.5739, allocations: 1.628 MB / 380.5 MB, free: 3.504 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007811/0.5748, allocations: 188 kB / 380.7 MB, free: 3.301 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003623/0.5752, allocations: 15.98 kB / 380.7 MB, free: 3.285 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002443/0.5776, allocations: 75.88 kB / 380.8 MB, free: 3.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003991/0.5781, allocations: 95.64 kB / 380.9 MB, free: 3.117 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002059/0.5783, allocations: 35.98 kB / 380.9 MB, free: 3.082 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002207/0.5806, allocations: 0.5264 MB / 381.4 MB, free: 2.562 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.359e-06/0.5806, allocations: 0 / 381.4 MB, free: 2.562 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003286/0.5839, allocations: 192 kB / 381.6 MB, free: 2.375 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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.001305/0.5853, allocations: 234.4 kB / 381.8 MB, free: 2.156 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003849/0.5891, allocations: 0.7135 MB / 382.5 MB, free: 1.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.132e-05/0.5892, allocations: 5 kB / 382.6 MB, free: 1.426 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00215/0.5914, allocations: 380.1 kB / 382.9 MB, free: 1.055 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/0.5946, allocations: 173.2 kB / 383.1 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008515/0.6031, allocations: 1.527 MB / 384.6 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001998/0.6052, allocations: 1.049 MB / 385.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/0.6064, allocations: 87.39 kB / 385.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of SimCode: time 2.878e-06/0.6064, allocations: 0 / 385.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of Templates: time 0.05108/0.6575, allocations: 12.49 MB / 398.2 MB, free: 1.52 MB / 330.7 MB