Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadModel(Modelica): time 2.194/2.194, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.0003508, allocations: 8 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09677, allocations: 44.5 MB / 309 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4406/0.5374, allocations: 84.13 MB / 393.2 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004466/0.5379, allocations: 95.58 kB / 393.3 MB, free: 15.36 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.0965/0.6344, allocations: 21.37 MB / 414.6 MB, free: 9.188 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.6345, allocations: 0 / 414.6 MB, free: 9.188 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.855e-05/0.6346, allocations: 19.47 kB / 414.7 MB, free: 9.188 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.004348/0.6389, allocations: 1.376 MB / 416 MB, free: 8.258 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.639, allocations: 7.812 kB / 416 MB, free: 8.258 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000546/0.6396, allocations: 124.6 kB / 416.2 MB, free: 8.195 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.6414, allocations: 0.6454 MB / 416.8 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/0.6416, allocations: 81.09 kB / 416.9 MB, free: 7.805 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002765/0.6419, allocations: 99.73 kB / 417 MB, free: 7.801 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003456/0.6454, allocations: 1.038 MB / 418 MB, free: 7.531 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.904e-05/0.6455, allocations: 15.5 kB / 418 MB, free: 7.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000152/0.6457, allocations: 42.11 kB / 418.1 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.29e-05/0.6457, allocations: 23.25 kB / 418.1 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003684/0.6494, allocations: 0.9722 MB / 419.1 MB, free: 7.355 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009211/0.6587, allocations: 3.862 MB / 422.9 MB, free: 5.367 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004122/0.6629, allocations: 0.9644 MB / 423.9 MB, free: 5.148 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000141/0.6631, allocations: 12.25 kB / 423.9 MB, free: 5.148 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.6631, allocations: 38.38 kB / 424 MB, free: 5.109 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.607e-06/0.6632, allocations: 0 / 424 MB, free: 5.109 MB / 314.7 MB Notification: Performance of matching and sorting (n=82): time 0.009073/0.6722, allocations: 2.212 MB / 426.2 MB, free: 4.434 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.6723, allocations: 96.73 kB / 426.3 MB, free: 4.332 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001653/0.674, allocations: 0.9084 MB / 427.2 MB, free: 4.066 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.6741, allocations: 40.89 kB / 427.2 MB, free: 4.035 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003644/0.6745, allocations: 0.4956 MB / 427.7 MB, free: 3.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002315/0.6748, allocations: 271.2 kB / 428 MB, free: 3.555 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.353e-05/0.6749, allocations: 20.94 kB / 428 MB, free: 3.555 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.675, allocations: 343.4 kB / 428.3 MB, free: 3.238 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00164/0.6766, allocations: 419.2 kB / 428.7 MB, free: 3.172 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/0.6784, allocations: 0.5654 MB / 429.3 MB, free: 2.934 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/0.6801, allocations: 478.8 kB / 429.8 MB, free: 2.844 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.6802, allocations: 3.219 kB / 429.8 MB, free: 2.844 MB / 314.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.004143/0.6843, allocations: 1.177 MB / 430.9 MB, free: 2.555 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.23e-05/0.6844, allocations: 34.17 kB / 431 MB, free: 2.523 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.6844, allocations: 7.938 kB / 431 MB, free: 2.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.904e-05/0.6845, allocations: 11.7 kB / 431 MB, free: 2.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002537/0.687, allocations: 336.4 kB / 431.3 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.278e-05/0.6871, allocations: 15.44 kB / 431.3 MB, free: 2.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/0.6888, allocations: 119 kB / 431.5 MB, free: 2.398 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.689, allocations: 34.3 kB / 431.5 MB, free: 2.395 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.0006942/0.6897, allocations: 287.4 kB / 431.8 MB, free: 2.262 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/0.6899, allocations: 97.16 kB / 431.9 MB, free: 2.211 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.6917, allocations: 489.2 kB / 432.3 MB, free: 2.074 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.6917, allocations: 11.84 kB / 432.4 MB, free: 2.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.6917, allocations: 3.953 kB / 432.4 MB, free: 2.066 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.6917, allocations: 3.984 kB / 432.4 MB, free: 2.062 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007257/0.699, allocations: 2.918 MB / 435.3 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.435e-05/0.6991, allocations: 8 kB / 435.3 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001775/0.7008, allocations: 267.6 kB / 435.5 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-05/0.7009, allocations: 19.94 kB / 435.6 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.251e-05/0.701, allocations: 33.81 kB / 435.6 MB, free: 376 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-05/0.701, allocations: 15.94 kB / 435.6 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.144e-05/0.701, allocations: 15.94 kB / 435.6 MB, free: 344 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003337/0.7044, allocations: 1.253 MB / 436.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004587/0.7049, allocations: 197.9 kB / 437.1 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/0.7051, allocations: 30.48 kB / 437.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.7064, allocations: 83.16 kB / 437.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002284/0.7067, allocations: 90.94 kB / 437.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.641e-05/0.7068, allocations: 37.06 kB / 437.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001474/0.7083, allocations: 0.6318 MB / 437.9 MB, free: 14.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.7083, allocations: 4 kB / 438 MB, free: 14.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001425/0.7097, allocations: 224 kB / 438.2 MB, free: 13.92 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.0008867/0.7106, allocations: 313.6 kB / 438.5 MB, free: 13.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003863/0.7145, allocations: 0.9407 MB / 439.4 MB, free: 12.71 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/0.7146, allocations: 4 kB / 439.4 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.7164, allocations: 470.2 kB / 439.9 MB, free: 12.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/0.7181, allocations: 183.1 kB / 440.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005857/0.724, allocations: 2.44 MB / 442.5 MB, free: 9.465 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009326/0.7249, allocations: 1.053 MB / 443.6 MB, free: 8.383 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001145/0.7261, allocations: 126.9 kB / 443.7 MB, free: 8.254 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004315/0.7266, allocations: 75.41 kB / 443.8 MB, free: 8.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.213e-06/0.7266, allocations: 0 / 443.8 MB, free: 8.18 MB / 330.7 MB Notification: Performance of Templates: time 0.03327/0.7599, allocations: 10.17 MB / 453.9 MB, free: 14.03 MB / 346.7 MB