Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.85/1.85, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003403, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09421/0.09457, allocations: 44.51 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4162/0.5108, allocations: 84.12 MB / 393.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.5112, allocations: 94.81 kB / 393.2 MB, free: 14.93 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Magnetic/FluxTubes.mo:1375:11-1375:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.0788/0.59, allocations: 21.37 MB / 414.6 MB, free: 9.035 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5901, allocations: 0 / 414.6 MB, free: 9.035 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.488e-05/0.5901, allocations: 27.25 kB / 414.6 MB, free: 9.035 MB / 314.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.003633/0.5938, allocations: 1.371 MB / 416 MB, free: 8.113 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.5938, allocations: 11.75 kB / 416 MB, free: 8.109 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002601/0.5941, allocations: 128.5 kB / 416.1 MB, free: 8.047 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.5954, allocations: 0.6477 MB / 416.7 MB, free: 7.652 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.5956, allocations: 76.56 kB / 416.8 MB, free: 7.652 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/0.5958, allocations: 93.31 kB / 416.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002944/0.5987, allocations: 1.05 MB / 418 MB, free: 7.379 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.466e-05/0.5988, allocations: 11.8 kB / 418 MB, free: 7.367 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.5989, allocations: 36.97 kB / 418 MB, free: 7.367 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.599, allocations: 23.19 kB / 418 MB, free: 7.367 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003311/0.6023, allocations: 0.9758 MB / 419 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007643/0.61, allocations: 3.857 MB / 422.9 MB, free: 5.223 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003913/0.6139, allocations: 0.9577 MB / 423.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.224e-05/0.614, allocations: 16.3 kB / 423.8 MB, free: 5.004 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.614, allocations: 45.25 kB / 423.9 MB, free: 4.961 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.577e-06/0.6141, allocations: 0 / 423.9 MB, free: 4.961 MB / 314.7 MB Notification: Performance of matching and sorting (n=82): time 0.008456/0.6225, allocations: 2.206 MB / 426.1 MB, free: 4.289 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.6226, allocations: 86.48 kB / 426.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.6241, allocations: 0.913 MB / 427.1 MB, free: 3.926 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.366e-05/0.6242, allocations: 39.23 kB / 427.1 MB, free: 3.895 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/0.6245, allocations: 0.5077 MB / 427.6 MB, free: 3.559 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/0.6247, allocations: 274.5 kB / 427.9 MB, free: 3.363 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.252e-05/0.6248, allocations: 18.22 kB / 427.9 MB, free: 3.363 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.474e-05/0.6249, allocations: 345.2 kB / 428.2 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/0.6266, allocations: 418.3 kB / 428.7 MB, free: 2.973 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001724/0.6283, allocations: 0.573 MB / 429.2 MB, free: 2.734 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00171/0.63, allocations: 482 kB / 429.7 MB, free: 2.641 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.6301, allocations: 3.938 kB / 429.7 MB, free: 2.637 MB / 314.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003784/0.6338, allocations: 1.126 MB / 430.8 MB, free: 2.379 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.675e-05/0.6339, allocations: 33.48 kB / 430.9 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.6339, allocations: 3.875 kB / 430.9 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.873e-05/0.634, allocations: 11.7 kB / 430.9 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002422/0.6364, allocations: 335.5 kB / 431.2 MB, free: 2.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.049e-05/0.6364, allocations: 11.78 kB / 431.2 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.638, allocations: 124.9 kB / 431.3 MB, free: 2.223 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.544e-05/0.6381, allocations: 31.12 kB / 431.4 MB, free: 2.223 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 117 * 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.0006472/0.6388, allocations: 290.2 kB / 431.7 MB, free: 2.086 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.639, allocations: 97.28 kB / 431.7 MB, free: 2.035 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001618/0.6407, allocations: 487.1 kB / 432.2 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.6407, allocations: 7.844 kB / 432.2 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.6407, allocations: 3.953 kB / 432.2 MB, free: 1.898 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.6407, allocations: 7.969 kB / 432.2 MB, free: 1.891 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006492/0.6472, allocations: 2.932 MB / 435.2 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.6473, allocations: 7.906 kB / 435.2 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001743/0.649, allocations: 260.4 kB / 435.4 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.747e-05/0.649, allocations: 15.25 kB / 435.4 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.796e-05/0.6491, allocations: 41.12 kB / 435.5 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-05/0.6492, allocations: 15.59 kB / 435.5 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/0.6492, allocations: 15.53 kB / 435.5 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002944/0.6521, allocations: 1.254 MB / 436.8 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/0.6525, allocations: 205.5 kB / 437 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002342/0.6528, allocations: 24 kB / 437 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.654, allocations: 87.89 kB / 437.1 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.6542, allocations: 91.69 kB / 437.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.974e-05/0.6543, allocations: 32 kB / 437.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001341/0.6556, allocations: 0.6318 MB / 437.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6557, allocations: 0 / 437.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001223/0.6569, allocations: 228 kB / 438.1 MB, free: 14.33 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 2 (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 (82): * Single equations (assignments): 82 * 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.0008385/0.6577, allocations: 311.2 kB / 438.4 MB, free: 14.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003452/0.6612, allocations: 0.9368 MB / 439.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.6612, allocations: 4 kB / 439.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.663, allocations: 474.2 kB / 439.8 MB, free: 12.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.6644, allocations: 179.1 kB / 439.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005366/0.6698, allocations: 2.489 MB / 442.4 MB, free: 9.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008153/0.6706, allocations: 1.041 MB / 443.5 MB, free: 8.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005865/0.6712, allocations: 87.39 kB / 443.6 MB, free: 8.664 MB / 330.7 MB Notification: Performance of SimCode: time 9.31e-07/0.6712, allocations: 0 / 443.6 MB, free: 8.664 MB / 330.7 MB Notification: Performance of Templates: time 0.02763/0.6988, allocations: 12.81 MB / 456.4 MB, free: 11.87 MB / 346.7 MB