Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.925/1.925, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.0003593, allocations: 11.98 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08207/0.08246, allocations: 44.51 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3527/0.4352, allocations: 84.13 MB / 392.6 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.4355, allocations: 90.08 kB / 392.7 MB, free: 18.82 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.07878/0.5143, allocations: 21.36 MB / 414 MB, free: 13.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.824e-06/0.5144, allocations: 0 / 414 MB, free: 13.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.932e-05/0.5145, allocations: 23.19 kB / 414 MB, free: 13.46 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.003107/0.5176, allocations: 1.374 MB / 415.4 MB, free: 12.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.5176, allocations: 11.66 kB / 415.4 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004344/0.5181, allocations: 124.5 kB / 415.6 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.5195, allocations: 0.6489 MB / 416.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.5197, allocations: 76.84 kB / 416.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.5199, allocations: 91 kB / 416.4 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/0.5228, allocations: 1.045 MB / 417.4 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.928e-05/0.5229, allocations: 7.859 kB / 417.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.523, allocations: 39.53 kB / 417.5 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.071e-05/0.5231, allocations: 23.34 kB / 417.5 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002994/0.5261, allocations: 0.9786 MB / 418.5 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007989/0.5341, allocations: 3.87 MB / 422.3 MB, free: 9.633 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003207/0.5374, allocations: 0.952 MB / 423.3 MB, free: 9.422 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.589e-05/0.5375, allocations: 12.3 kB / 423.3 MB, free: 9.418 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.5375, allocations: 38.38 kB / 423.3 MB, free: 9.379 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.901e-06/0.5375, allocations: 0 / 423.3 MB, free: 9.379 MB / 314.7 MB Notification: Performance of matching and sorting (n=82): time 0.007612/0.5452, allocations: 2.221 MB / 425.6 MB, free: 8.699 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.5452, allocations: 85.3 kB / 425.6 MB, free: 8.605 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/0.5468, allocations: 0.8228 MB / 426.5 MB, free: 8.367 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000146/0.547, allocations: 37.14 kB / 426.5 MB, free: 8.336 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/0.5473, allocations: 0.5056 MB / 427 MB, free: 8.004 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/0.5475, allocations: 280.4 kB / 427.3 MB, free: 7.805 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.41e-05/0.5476, allocations: 19.19 kB / 427.3 MB, free: 7.805 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.04e-05/0.5477, allocations: 345.9 kB / 427.6 MB, free: 7.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/0.5491, allocations: 413.9 kB / 428 MB, free: 7.418 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001594/0.5508, allocations: 0.5737 MB / 428.6 MB, free: 7.176 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.5523, allocations: 471.4 kB / 429.1 MB, free: 7.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.5524, allocations: 3.875 kB / 429.1 MB, free: 7.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003562/0.556, allocations: 1.127 MB / 430.2 MB, free: 6.828 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.574e-05/0.556, allocations: 37.25 kB / 430.2 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.5561, allocations: 3.656 kB / 430.2 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/0.5561, allocations: 11.62 kB / 430.2 MB, free: 6.789 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001786/0.5579, allocations: 337.2 kB / 430.6 MB, free: 6.703 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.915e-05/0.558, allocations: 11.53 kB / 430.6 MB, free: 6.703 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.5594, allocations: 115.3 kB / 430.7 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.5595, allocations: 38.08 kB / 430.7 MB, free: 6.672 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.0006833/0.5602, allocations: 290 kB / 431 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.5605, allocations: 101 kB / 431.1 MB, free: 6.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/0.562, allocations: 486.6 kB / 431.6 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.562, allocations: 9.625 kB / 431.6 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.562, allocations: 7.953 kB / 431.6 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.5621, allocations: 3.984 kB / 431.6 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006771/0.5688, allocations: 2.924 MB / 434.5 MB, free: 5.066 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/0.5689, allocations: 11.62 kB / 434.6 MB, free: 5.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.5701, allocations: 262.1 kB / 434.8 MB, free: 4.996 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.1e-05/0.5702, allocations: 19.36 kB / 434.8 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.659e-05/0.5703, allocations: 26.16 kB / 434.9 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-05/0.5703, allocations: 23.47 kB / 434.9 MB, free: 4.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-05/0.5703, allocations: 19.56 kB / 434.9 MB, free: 4.973 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002783/0.5731, allocations: 1.748 MB / 436.6 MB, free: 3.504 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000473/0.5736, allocations: 209.1 kB / 436.8 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.5738, allocations: 25.28 kB / 436.9 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009972/0.5749, allocations: 81.53 kB / 437 MB, free: 3.324 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.575, allocations: 87.2 kB / 437 MB, free: 3.285 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.672e-05/0.5751, allocations: 36.08 kB / 437.1 MB, free: 3.281 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001158/0.5763, allocations: 0.6353 MB / 437.7 MB, free: 2.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.41e-07/0.5763, allocations: 0 / 437.7 MB, free: 2.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001429/0.5778, allocations: 230.8 kB / 437.9 MB, free: 2.711 MB / 314.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.0009993/0.5788, allocations: 302.7 kB / 438.2 MB, free: 2.484 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.5815, allocations: 0.9471 MB / 439.2 MB, free: 1.602 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/0.5816, allocations: 12.06 kB / 439.2 MB, free: 1.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.5829, allocations: 461.8 kB / 439.6 MB, free: 1.141 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.5844, allocations: 187.3 kB / 439.8 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005347/0.5898, allocations: 2.477 MB / 442.3 MB, free: 14.31 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.5909, allocations: 1.053 MB / 443.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005736/0.5915, allocations: 87.39 kB / 443.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of SimCode: time 1.945e-06/0.5915, allocations: 0 / 443.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of Templates: time 0.02671/0.6182, allocations: 12.81 MB / 456.3 MB, free: 356 kB / 330.7 MB