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 1.036/1.036, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.000262, allocations: 7.938 kB / 158.3 MB, free: 15.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04639/0.04668, allocations: 25.16 MB / 183.5 MB, free: 5.957 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1827/0.2294, allocations: 43.11 MB / 226.6 MB, free: 3.379 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.2297, allocations: 75.31 kB / 226.7 MB, free: 3.367 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07642/0.3062, allocations: 20.11 MB / 246.8 MB, free: 2.52 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.466e-06/0.3062, allocations: 0 / 246.8 MB, free: 2.52 MB / 186.7 MB Notification: Performance of Transformations before backend: time 6.109e-05/0.3063, allocations: 24 kB / 246.8 MB, free: 2.496 MB / 186.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.003275/0.3096, allocations: 1.308 MB / 248.1 MB, free: 1.207 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3096, allocations: 8.031 kB / 248.1 MB, free: 1.199 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003396/0.31, allocations: 126.5 kB / 248.3 MB, free: 1.074 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.3114, allocations: 0.6176 MB / 248.9 MB, free: 0.5508 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.3115, allocations: 82.12 kB / 249 MB, free: 0.5039 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002093/0.3118, allocations: 93.97 kB / 249 MB, free: 452 kB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002893/0.3147, allocations: 1.069 MB / 250.1 MB, free: 15.7 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.636e-05/0.3148, allocations: 7.984 kB / 250.1 MB, free: 15.69 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/0.3149, allocations: 38.19 kB / 250.2 MB, free: 15.68 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.871e-05/0.3149, allocations: 28 kB / 250.2 MB, free: 15.66 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003058/0.318, allocations: 0.992 MB / 251.2 MB, free: 14.85 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008663/0.3267, allocations: 3.856 MB / 255 MB, free: 10.8 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003265/0.33, allocations: 0.9769 MB / 256 MB, free: 9.809 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.364e-05/0.3301, allocations: 8.234 kB / 256 MB, free: 9.801 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.984e-05/0.3302, allocations: 46.78 kB / 256.1 MB, free: 9.746 MB / 202.7 MB Notification: Performance of pre-optimization done (n=65): time 4.054e-06/0.3302, allocations: 0 / 256.1 MB, free: 9.746 MB / 202.7 MB Notification: Performance of matching and sorting (n=79): time 0.00801/0.3382, allocations: 2.435 MB / 258.5 MB, free: 7.305 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.986e-05/0.3383, allocations: 93.52 kB / 258.6 MB, free: 7.195 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/0.3399, allocations: 0.7306 MB / 259.3 MB, free: 6.457 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.34, allocations: 41.7 kB / 259.4 MB, free: 6.41 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000468/0.3405, allocations: 0.513 MB / 259.9 MB, free: 5.891 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/0.3409, allocations: 264.1 kB / 260.1 MB, free: 5.629 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.958e-05/0.3409, allocations: 16 kB / 260.1 MB, free: 5.613 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.3412, allocations: 350.9 kB / 260.5 MB, free: 5.262 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/0.3427, allocations: 461.7 kB / 260.9 MB, free: 4.812 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001622/0.3443, allocations: 0.5859 MB / 261.5 MB, free: 4.18 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.3459, allocations: 486 kB / 262 MB, free: 3.703 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.328e-06/0.3459, allocations: 4 kB / 262 MB, free: 3.699 MB / 202.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003602/0.3495, allocations: 1.158 MB / 263.2 MB, free: 2.531 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.3496, allocations: 8 kB / 263.2 MB, free: 2.523 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.3496, allocations: 4 kB / 263.2 MB, free: 2.52 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/0.3497, allocations: 12.03 kB / 263.2 MB, free: 2.508 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/0.3514, allocations: 331.5 kB / 263.5 MB, free: 2.184 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.208e-05/0.3515, allocations: 15.94 kB / 263.5 MB, free: 2.168 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/0.3527, allocations: 119.9 kB / 263.6 MB, free: 2.051 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.3528, allocations: 39.98 kB / 263.7 MB, free: 2.012 MB / 202.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (cActuator.armature.stopper_xMin.contact,comparisonWithFEA.tableID,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 114 * 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.000709/0.3535, allocations: 281.6 kB / 264 MB, free: 1.727 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.3538, allocations: 94.83 kB / 264 MB, free: 1.633 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00174/0.3555, allocations: 0.5992 MB / 264.6 MB, free: 1.02 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.3556, allocations: 8 kB / 264.7 MB, free: 1.012 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.111e-06/0.3556, allocations: 4 kB / 264.7 MB, free: 1.008 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/0.3556, allocations: 7.984 kB / 264.7 MB, free: 1 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007246/0.3629, allocations: 2.937 MB / 267.6 MB, free: 13.88 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.751e-05/0.3629, allocations: 8 kB / 267.6 MB, free: 13.88 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/0.3642, allocations: 247.8 kB / 267.9 MB, free: 13.63 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.596e-05/0.3643, allocations: 23.89 kB / 267.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.768e-05/0.3643, allocations: 31.98 kB / 267.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.097e-05/0.3644, allocations: 15.94 kB / 267.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.577e-05/0.3644, allocations: 16 kB / 267.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003385/0.3678, allocations: 1.793 MB / 269.7 MB, free: 11.38 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/0.3682, allocations: 183.9 kB / 269.9 MB, free: 11.18 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/0.3684, allocations: 28 kB / 269.9 MB, free: 11.15 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009619/0.3694, allocations: 83.94 kB / 270 MB, free: 11.07 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/0.3696, allocations: 87.69 kB / 270.1 MB, free: 10.98 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.3697, allocations: 39.98 kB / 270.1 MB, free: 10.95 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001174/0.3709, allocations: 0.5693 MB / 270.7 MB, free: 10.38 MB / 218.7 MB Notification: Performance of sort global known variables: time 8.05e-07/0.3709, allocations: 0 / 270.7 MB, free: 10.38 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001212/0.3721, allocations: 223.9 kB / 270.9 MB, free: 10.16 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 3 (comparisonWithFEA.tableID,cActuator.armature.stopper_xMin.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 simulation (79): * Single equations (assignments): 78 * 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.0004837/0.3726, allocations: 198.3 kB / 271.1 MB, free: 9.977 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002855/0.3755, allocations: 0.9216 MB / 272.1 MB, free: 9.059 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.3755, allocations: 0 / 272.1 MB, free: 9.059 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.3771, allocations: 489.9 kB / 272.5 MB, free: 8.582 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.3787, allocations: 183.1 kB / 272.7 MB, free: 8.398 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005159/0.3838, allocations: 2.39 MB / 275.1 MB, free: 5.852 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009999/0.3849, allocations: 1.037 MB / 276.1 MB, free: 4.785 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005236/0.3854, allocations: 79.39 kB / 276.2 MB, free: 4.707 MB / 218.7 MB Notification: Performance of SimCode: time 1.703e-06/0.3854, allocations: 0 / 276.2 MB, free: 4.707 MB / 218.7 MB Notification: Performance of Templates: time 0.02489/0.4103, allocations: 12.4 MB / 288.6 MB, free: 8.316 MB / 234.7 MB