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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 0.9584/0.9584, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.527e-05/1.537e-05, allocations: 0 / 148.1 MB, free: 6.227 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04463/0.04467, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1782/0.2229, allocations: 41.56 MB / 214.9 MB, free: 6.773 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.2232, allocations: 75.41 kB / 214.9 MB, free: 6.773 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1506/0.3738, allocations: 34.66 MB / 249.6 MB, free: 0.9023 MB / 186.7 MB Notification: Performance of FrontEnd: time 3.064e-06/0.3738, allocations: 0 / 249.6 MB, free: 0.9023 MB / 186.7 MB Notification: Performance of Transformations before backend: time 9.076e-05/0.3739, allocations: 20 kB / 249.6 MB, free: 0.8828 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: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.005673/0.3796, allocations: 1.123 MB / 250.7 MB, free: 15.71 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.354e-05/0.3797, allocations: 12.03 kB / 250.7 MB, free: 15.7 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000727/0.3805, allocations: 118.6 kB / 250.9 MB, free: 15.59 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002904/0.3834, allocations: 0.5784 MB / 251.4 MB, free: 14.96 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000311/0.3838, allocations: 46 kB / 251.5 MB, free: 14.92 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004139/0.3842, allocations: 55.98 kB / 251.5 MB, free: 14.86 MB / 202.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003665/0.3879, allocations: 0.7069 MB / 252.2 MB, free: 14.16 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003535/0.3915, allocations: 0.7824 MB / 253 MB, free: 13.36 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.062e-05/0.3916, allocations: 7.906 kB / 253 MB, free: 13.35 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001615/0.3918, allocations: 0 / 253 MB, free: 13.35 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.233e-05/0.3919, allocations: 24 kB / 253.1 MB, free: 13.33 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0141/0.406, allocations: 3.33 MB / 256.4 MB, free: 9.859 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002578/0.4086, allocations: 0.698 MB / 257.1 MB, free: 9.137 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/0.4105, allocations: 423.7 kB / 257.5 MB, free: 8.719 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.4107, allocations: 24.48 kB / 257.5 MB, free: 8.691 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.466e-05/0.4108, allocations: 39.12 kB / 257.6 MB, free: 8.645 MB / 202.7 MB Notification: Performance of pre-optimization done (n=91): time 8.861e-06/0.4108, allocations: 0 / 257.6 MB, free: 8.645 MB / 202.7 MB Notification: Performance of matching and sorting (n=127): time 0.02107/0.4319, allocations: 3.579 MB / 261.1 MB, free: 4.891 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.4321, allocations: 94.27 kB / 261.2 MB, free: 4.777 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001819/0.434, allocations: 462.1 kB / 261.7 MB, free: 4.316 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001783/0.4342, allocations: 25.7 kB / 261.7 MB, free: 4.285 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007345/0.435, allocations: 454.7 kB / 262.2 MB, free: 3.836 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009225/0.4359, allocations: 413.7 kB / 262.6 MB, free: 3.426 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.4361, allocations: 0 / 262.6 MB, free: 3.426 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.000398/0.4365, allocations: 358.7 kB / 262.9 MB, free: 3.066 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/0.4385, allocations: 338.6 kB / 263.2 MB, free: 2.738 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002284/0.4408, allocations: 477.9 kB / 263.7 MB, free: 2.238 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002165/0.443, allocations: 389.2 kB / 264.1 MB, free: 1.863 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/0.4431, allocations: 0 / 264.1 MB, free: 1.863 MB / 202.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.006006/0.4491, allocations: 1.043 MB / 265.1 MB, free: 0.8008 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.159e-05/0.4492, allocations: 7.953 kB / 265.1 MB, free: 0.793 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/0.4492, allocations: 4 kB / 265.1 MB, free: 0.7891 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.4504, allocations: 150.6 kB / 265.3 MB, free: 0.6328 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003021/0.4535, allocations: 287.6 kB / 265.6 MB, free: 360 kB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005757/0.4593, allocations: 4.6 MB / 270.2 MB, free: 11.4 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.4605, allocations: 60 kB / 270.2 MB, free: 11.34 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.4606, allocations: 39.98 kB / 270.3 MB, free: 11.3 MB / 218.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.0002932/0.4609, allocations: 124.7 kB / 270.4 MB, free: 11.18 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/0.4612, allocations: 86.97 kB / 270.5 MB, free: 11.09 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001856/0.4631, allocations: 0.7008 MB / 271.2 MB, free: 10.37 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.453e-05/0.4631, allocations: 12 kB / 271.2 MB, free: 10.36 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.4631, allocations: 4 kB / 271.2 MB, free: 10.36 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/0.4632, allocations: 7.969 kB / 271.2 MB, free: 10.35 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005941/0.4691, allocations: 2.697 MB / 273.9 MB, free: 7.535 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.672e-06/0.4692, allocations: 0 / 273.9 MB, free: 7.535 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001369/0.4705, allocations: 243.9 kB / 274.1 MB, free: 7.297 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005248/0.4711, allocations: 122.4 kB / 274.3 MB, free: 7.168 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.293e-05/0.4712, allocations: 19.92 kB / 274.3 MB, free: 7.148 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004701/0.4759, allocations: 4.23 MB / 278.5 MB, free: 2.574 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.031e-06/0.476, allocations: 4 kB / 278.5 MB, free: 2.57 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003753/0.4797, allocations: 1.798 MB / 280.3 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003317/0.4801, allocations: 168.3 kB / 280.5 MB, free: 480 kB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.4803, allocations: 7.953 kB / 280.5 MB, free: 472 kB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008943/0.4812, allocations: 55.95 kB / 280.5 MB, free: 416 kB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/0.4814, allocations: 100.5 kB / 280.6 MB, free: 316 kB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.4815, allocations: 35.98 kB / 280.7 MB, free: 280 kB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0006646/0.4822, allocations: 355 kB / 281 MB, free: 15.93 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.4822, allocations: 0 / 281 MB, free: 15.93 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001423/0.4837, allocations: 220 kB / 281.2 MB, free: 15.71 MB / 234.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.0003089/0.484, allocations: 141.3 kB / 281.4 MB, free: 15.57 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002783/0.4868, allocations: 1.269 MB / 282.6 MB, free: 14.27 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.305e-06/0.4868, allocations: 0 / 282.6 MB, free: 14.27 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/0.4885, allocations: 0.8523 MB / 283.5 MB, free: 13.39 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.4898, allocations: 142.6 kB / 283.6 MB, free: 13.25 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/0.4941, allocations: 1.732 MB / 285.4 MB, free: 11.46 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009948/0.4952, allocations: 1.048 MB / 286.4 MB, free: 10.38 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005472/0.4958, allocations: 91.39 kB / 286.5 MB, free: 10.29 MB / 234.7 MB Notification: Performance of SimCode: time 1.631e-06/0.4958, allocations: 0 / 286.5 MB, free: 10.29 MB / 234.7 MB Notification: Performance of Templates: time 0.1743/0.67, allocations: 25.7 MB / 312.2 MB, free: 59.57 MB / 234.7 MB