Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.633/1.633, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003504, allocations: 12 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06934/0.06971, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.007956/0.07772, allocations: 5.088 MB / 277 MB, free: 7.082 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004477/0.08224, allocations: 2.004 MB / 279 MB, free: 5.074 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000971/0.08326, allocations: 19.94 kB / 279 MB, free: 5.055 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007973/0.08409, allocations: 294.6 kB / 279.3 MB, free: 4.766 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00178/0.0859, allocations: 486.6 kB / 279.8 MB, free: 4.289 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009892/0.08692, allocations: 235.6 kB / 280 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002029/0.08897, allocations: 0.9361 MB / 281 MB, free: 3.117 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007596/0.08976, allocations: 378 kB / 281.3 MB, free: 2.738 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008476/0.09062, allocations: 458.3 kB / 281.8 MB, free: 2.289 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008444/0.09148, allocations: 0.5291 MB / 282.3 MB, free: 1.758 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001618/0.09166, allocations: 60 kB / 282.4 MB, free: 1.699 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003093/0.09199, allocations: 76 kB / 282.4 MB, free: 1.625 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.09227, allocations: 211.2 kB / 282.7 MB, free: 1.418 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003354/0.09262, allocations: 253.1 kB / 282.9 MB, free: 1.164 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00198/0.09462, allocations: 1.496 MB / 284.4 MB, free: 15.66 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.09464, allocations: 4 kB / 284.4 MB, free: 15.66 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.401e-06/0.09465, allocations: 0 / 284.4 MB, free: 15.66 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.438e-05/0.09469, allocations: 0 / 284.4 MB, free: 15.66 MB / 250.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.003439/0.09814, allocations: 1.392 MB / 285.8 MB, free: 14.21 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.0982, allocations: 16.03 kB / 285.8 MB, free: 14.2 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000297/0.09851, allocations: 134.4 kB / 285.9 MB, free: 14.06 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/0.1002, allocations: 0.664 MB / 286.6 MB, free: 13.36 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.1003, allocations: 73.94 kB / 286.7 MB, free: 13.29 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000223/0.1006, allocations: 99.94 kB / 286.8 MB, free: 13.19 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002819/0.1034, allocations: 1.029 MB / 287.8 MB, free: 12.14 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.568e-05/0.1035, allocations: 7.906 kB / 287.8 MB, free: 12.13 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.1036, allocations: 40 kB / 287.8 MB, free: 12.09 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.897e-05/0.1037, allocations: 24 kB / 287.9 MB, free: 12.07 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00303/0.1067, allocations: 0.9382 MB / 288.8 MB, free: 11.13 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008148/0.1149, allocations: 3.66 MB / 292.5 MB, free: 7.293 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004133/0.1191, allocations: 1.098 MB / 293.6 MB, free: 6.18 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.91e-05/0.1192, allocations: 16.16 kB / 293.6 MB, free: 6.164 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.1193, allocations: 43.34 kB / 293.6 MB, free: 6.113 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 4.465e-06/0.1193, allocations: 4 kB / 293.6 MB, free: 6.109 MB / 250.7 MB Notification: Performance of matching and sorting (n=67): time 0.006801/0.1261, allocations: 1.972 MB / 295.6 MB, free: 4.129 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.38e-05/0.1262, allocations: 85.11 kB / 295.7 MB, free: 4.027 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001841/0.1281, allocations: 0.9662 MB / 296.7 MB, free: 3.051 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.1282, allocations: 37.7 kB / 296.7 MB, free: 3.008 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000512/0.1287, allocations: 0.5246 MB / 297.2 MB, free: 2.477 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002736/0.129, allocations: 232.6 kB / 297.4 MB, free: 2.246 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.109e-05/0.1291, allocations: 16 kB / 297.5 MB, free: 2.23 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.1293, allocations: 346.8 kB / 297.8 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001347/0.1307, allocations: 385.7 kB / 298.2 MB, free: 1.508 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.1322, allocations: 0.5577 MB / 298.7 MB, free: 0.875 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.1336, allocations: 448.9 kB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.743e-06/0.1336, allocations: 0 / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.1782/0.3118, allocations: 1.057 MB / 300.2 MB, free: 29.34 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.121e-05/0.3119, allocations: 33.47 kB / 300.3 MB, free: 29.3 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.312, allocations: 5.5 kB / 300.3 MB, free: 29.3 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.152e-05/0.312, allocations: 13.34 kB / 300.3 MB, free: 29.3 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/0.3137, allocations: 320.4 kB / 300.6 MB, free: 29.3 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.448e-05/0.3137, allocations: 12.59 kB / 300.6 MB, free: 29.3 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.3149, allocations: 92.41 kB / 300.7 MB, free: 29.3 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.315, allocations: 41.17 kB / 300.7 MB, free: 29.3 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.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 initialization (109): * Single equations (assignments): 108 * 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.0005894/0.3156, allocations: 282.3 kB / 301 MB, free: 29.19 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.3158, allocations: 99.66 kB / 301.1 MB, free: 29.19 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.3172, allocations: 420.7 kB / 301.5 MB, free: 29.14 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.3172, allocations: 8.625 kB / 301.5 MB, free: 29.14 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.043e-06/0.3172, allocations: 0 / 301.5 MB, free: 29.14 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.3173, allocations: 5.641 kB / 301.5 MB, free: 29.14 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005394/0.3227, allocations: 2.339 MB / 303.9 MB, free: 28.02 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/0.3227, allocations: 7.188 kB / 303.9 MB, free: 28.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.3239, allocations: 237.6 kB / 304.1 MB, free: 28 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.148e-05/0.3239, allocations: 10.88 kB / 304.1 MB, free: 28 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.698e-05/0.324, allocations: 33.66 kB / 304.2 MB, free: 27.99 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.912e-05/0.324, allocations: 15.56 kB / 304.2 MB, free: 27.98 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/0.324, allocations: 7.25 kB / 304.2 MB, free: 27.98 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002236/0.3263, allocations: 1.065 MB / 305.2 MB, free: 27.33 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003047/0.3266, allocations: 189.7 kB / 305.4 MB, free: 27.18 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001621/0.3268, allocations: 27.59 kB / 305.5 MB, free: 27.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008423/0.3277, allocations: 63.25 kB / 305.5 MB, free: 27.15 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.3278, allocations: 63.5 kB / 305.6 MB, free: 27.13 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.305e-05/0.3279, allocations: 27.23 kB / 305.6 MB, free: 27.13 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.00122/0.3291, allocations: 0.6742 MB / 306.3 MB, free: 26.84 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.3292, allocations: 0 / 306.3 MB, free: 26.84 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00117/0.3303, allocations: 202.5 kB / 306.5 MB, free: 26.82 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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.0006679/0.331, allocations: 243.4 kB / 306.7 MB, free: 26.68 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002588/0.3336, allocations: 0.8692 MB / 307.6 MB, free: 26.36 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.933e-06/0.3337, allocations: 5.219 kB / 307.6 MB, free: 26.36 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.3349, allocations: 389.6 kB / 308 MB, free: 26.23 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.3362, allocations: 174.3 kB / 308.1 MB, free: 26.16 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/0.3405, allocations: 2.283 MB / 310.4 MB, free: 24.72 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007003/0.3412, allocations: 1.036 MB / 311.5 MB, free: 24 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000445/0.3417, allocations: 83.98 kB / 311.5 MB, free: 23.98 MB / 250.7 MB Notification: Performance of SimCode: time 2.517e-06/0.3417, allocations: 0 / 311.5 MB, free: 23.98 MB / 250.7 MB Notification: Performance of Templates: time 0.0203/0.362, allocations: 12.33 MB / 323.9 MB, free: 15.39 MB / 250.7 MB