Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.786/1.786, allocations: 171.1 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.00038, allocations: 12 kB / 233.8 MB, free: 0.9766 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08685/0.08727, allocations: 38.77 MB / 272.6 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3609/0.4482, allocations: 79.27 MB / 351.8 MB, free: 3.816 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000354/0.4486, allocations: 91.95 kB / 351.9 MB, free: 3.727 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09675/0.5454, allocations: 21.35 MB / 373.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.5455, allocations: 0 / 373.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001005/0.5456, allocations: 27.98 kB / 373.3 MB, free: 14.28 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.005294/0.5509, allocations: 1.373 MB / 374.7 MB, free: 12.85 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.551, allocations: 8.031 kB / 374.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005962/0.5516, allocations: 131.1 kB / 374.8 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002039/0.5536, allocations: 0.6368 MB / 375.4 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002942/0.554, allocations: 85.92 kB / 375.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004594/0.5544, allocations: 95.91 kB / 375.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0039/0.5584, allocations: 1.04 MB / 376.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.166e-05/0.5585, allocations: 0 / 376.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001575/0.5586, allocations: 40 kB / 376.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.067e-05/0.5587, allocations: 24 kB / 376.7 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004447/0.5631, allocations: 0.9772 MB / 377.7 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.5742, allocations: 3.837 MB / 381.5 MB, free: 5.719 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004679/0.5789, allocations: 0.9673 MB / 382.5 MB, free: 4.734 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001209/0.5791, allocations: 16.55 kB / 382.5 MB, free: 4.719 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/0.5791, allocations: 39.12 kB / 382.6 MB, free: 4.672 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.697e-06/0.5791, allocations: 0 / 382.6 MB, free: 4.672 MB / 314.7 MB Notification: Performance of matching and sorting (n=82): time 0.01087/0.59, allocations: 2.215 MB / 384.8 MB, free: 2.449 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/0.5902, allocations: 89.53 kB / 384.9 MB, free: 2.344 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002352/0.5925, allocations: 0.9033 MB / 385.8 MB, free: 1.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002072/0.5928, allocations: 41.7 kB / 385.8 MB, free: 1.383 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005198/0.5933, allocations: 0.5131 MB / 386.3 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003901/0.5937, allocations: 279.9 kB / 386.6 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.5939, allocations: 16 kB / 386.6 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.594, allocations: 350.8 kB / 386.9 MB, free: 224 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/0.5961, allocations: 425.8 kB / 387.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002164/0.5983, allocations: 0.5681 MB / 387.9 MB, free: 15.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002184/0.6005, allocations: 479.7 kB / 388.4 MB, free: 14.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.467e-06/0.6006, allocations: 0 / 388.4 MB, free: 14.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.004875/0.6055, allocations: 1.129 MB / 389.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.201e-05/0.6056, allocations: 30.33 kB / 389.6 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.6056, allocations: 4 kB / 389.6 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.406e-05/0.6056, allocations: 12 kB / 389.6 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002774/0.6084, allocations: 335.6 kB / 389.9 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.555e-05/0.6085, allocations: 15.92 kB / 389.9 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001992/0.6105, allocations: 115.9 kB / 390 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001724/0.6107, allocations: 39.98 kB / 390.1 MB, free: 13.02 MB / 330.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.0008983/0.6116, allocations: 285.6 kB / 390.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003582/0.612, allocations: 98.88 kB / 390.4 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00207/0.6141, allocations: 482.2 kB / 390.9 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/0.6141, allocations: 12 kB / 390.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.6142, allocations: 0 / 390.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-05/0.6142, allocations: 7.969 kB / 390.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009049/0.6232, allocations: 2.925 MB / 393.9 MB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/0.6233, allocations: 12 kB / 393.9 MB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/0.6253, allocations: 260 kB / 394.1 MB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-05/0.6253, allocations: 16 kB / 394.1 MB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.851e-05/0.6254, allocations: 27.98 kB / 394.2 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-05/0.6254, allocations: 23.94 kB / 394.2 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.467e-05/0.6255, allocations: 11.94 kB / 394.2 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00352/0.629, allocations: 1.264 MB / 395.5 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005699/0.6296, allocations: 199.9 kB / 395.7 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000355/0.63, allocations: 35.97 kB / 395.7 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/0.6313, allocations: 79.94 kB / 395.8 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.6316, allocations: 87.7 kB / 395.9 MB, free: 6.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.623e-05/0.6317, allocations: 32 kB / 395.9 MB, free: 6.805 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001452/0.6331, allocations: 0.6318 MB / 396.5 MB, free: 6.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6332, allocations: 0 / 396.5 MB, free: 6.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001554/0.6347, allocations: 231.9 kB / 396.7 MB, free: 5.953 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.0007927/0.6355, allocations: 261.4 kB / 397 MB, free: 5.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004011/0.6396, allocations: 0.9482 MB / 398 MB, free: 4.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.604e-05/0.6396, allocations: 0 / 398 MB, free: 4.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001912/0.6416, allocations: 474.2 kB / 398.4 MB, free: 4.309 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.6434, allocations: 187.2 kB / 398.6 MB, free: 4.125 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006844/0.6502, allocations: 2.471 MB / 401.1 MB, free: 1.488 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009515/0.6513, allocations: 1.045 MB / 402.1 MB, free: 428 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007138/0.652, allocations: 87.39 kB / 402.2 MB, free: 340 kB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.652, allocations: 0 / 402.2 MB, free: 340 kB / 330.7 MB Notification: Performance of Templates: time 0.03171/0.6837, allocations: 12.8 MB / 415 MB, free: 3.551 MB / 346.7 MB