Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.65/1.65, allocations: 171.2 MB / 186.1 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003632, allocations: 8 kB / 233.4 MB, free: 180 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.09851, allocations: 38.77 MB / 272.1 MB, free: 9.32 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3803/0.4789, allocations: 79.29 MB / 351.4 MB, free: 3.137 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003662/0.4793, allocations: 87.95 kB / 351.5 MB, free: 3.051 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09456/0.5739, allocations: 21.35 MB / 372.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5739, allocations: 0 / 372.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.954e-05/0.574, allocations: 20 kB / 372.9 MB, free: 13.61 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.005598/0.5797, allocations: 1.373 MB / 374.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.597e-05/0.5797, allocations: 12.03 kB / 374.3 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004601/0.5802, allocations: 148.6 kB / 374.4 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004677/0.5807, allocations: 130.5 kB / 374.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002333/0.5831, allocations: 0.6445 MB / 375.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002978/0.5834, allocations: 82 kB / 375.3 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003735/0.5838, allocations: 95.91 kB / 375.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005088/0.5889, allocations: 1.033 MB / 376.4 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.119e-05/0.589, allocations: 0 / 376.4 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002197/0.5892, allocations: 40 kB / 376.4 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.576e-05/0.5893, allocations: 28 kB / 376.5 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005317/0.5946, allocations: 0.981 MB / 377.4 MB, free: 8.934 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/0.6081, allocations: 3.84 MB / 381.3 MB, free: 4.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005758/0.6139, allocations: 0.9552 MB / 382.2 MB, free: 3.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/0.614, allocations: 12.55 kB / 382.2 MB, free: 3.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/0.6141, allocations: 43.12 kB / 382.3 MB, free: 3.859 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 4.899e-06/0.6141, allocations: 0 / 382.3 MB, free: 3.859 MB / 314.7 MB Notification: Performance of matching and sorting (n=82): time 0.01488/0.629, allocations: 2.223 MB / 384.5 MB, free: 1.629 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.6291, allocations: 85.55 kB / 384.6 MB, free: 1.527 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003135/0.6323, allocations: 0.8166 MB / 385.4 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002248/0.6326, allocations: 37.7 kB / 385.4 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006987/0.6333, allocations: 0.5029 MB / 385.9 MB, free: 152 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000472/0.6338, allocations: 283.9 kB / 386.2 MB, free: 15.87 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.6339, allocations: 20 kB / 386.2 MB, free: 15.85 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000213/0.6342, allocations: 345.9 kB / 386.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002632/0.6368, allocations: 421.8 kB / 387 MB, free: 15.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002753/0.6396, allocations: 0.5641 MB / 387.6 MB, free: 14.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00264/0.6423, allocations: 471.8 kB / 388 MB, free: 14.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.6423, allocations: 7.938 kB / 388 MB, free: 14 MB / 330.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.006453/0.6488, allocations: 1.186 MB / 389.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.453e-05/0.6489, allocations: 33.7 kB / 389.2 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.6489, allocations: 4 kB / 389.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.063e-05/0.6489, allocations: 8 kB / 389.3 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002985/0.6519, allocations: 335.6 kB / 389.6 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.8e-05/0.652, allocations: 11.98 kB / 389.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.6539, allocations: 115.9 kB / 389.7 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/0.6541, allocations: 35.98 kB / 389.7 MB, free: 12.26 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.0008151/0.6549, allocations: 300.5 kB / 390 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000376/0.6553, allocations: 90.88 kB / 390.1 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001976/0.6573, allocations: 482.2 kB / 390.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.6573, allocations: 8 kB / 390.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.6573, allocations: 0 / 390.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.6574, allocations: 3.984 kB / 390.6 MB, free: 11.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008109/0.6655, allocations: 2.937 MB / 393.5 MB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.6656, allocations: 11.94 kB / 393.6 MB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001955/0.6675, allocations: 267.6 kB / 393.8 MB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-05/0.6676, allocations: 19.98 kB / 393.8 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.781e-05/0.6677, allocations: 31.98 kB / 393.9 MB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.21e-05/0.6677, allocations: 15.94 kB / 393.9 MB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.775e-05/0.6677, allocations: 15.94 kB / 393.9 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00374/0.6715, allocations: 1.746 MB / 395.6 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004329/0.672, allocations: 199.9 kB / 395.8 MB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.6722, allocations: 35.94 kB / 395.9 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.6735, allocations: 75.95 kB / 396 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/0.6737, allocations: 95.62 kB / 396 MB, free: 5.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-05/0.6738, allocations: 40 kB / 396.1 MB, free: 5.273 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001442/0.6752, allocations: 0.6318 MB / 396.7 MB, free: 4.645 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6752, allocations: 0 / 396.7 MB, free: 4.645 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001408/0.6767, allocations: 227.9 kB / 396.9 MB, free: 4.422 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.005936/0.6826, allocations: 5.415 MB / 402.4 MB, free: 14.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003785/0.6864, allocations: 0.9404 MB / 403.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/0.6865, allocations: 4 kB / 403.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001826/0.6883, allocations: 475.1 kB / 403.8 MB, free: 13.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001717/0.6901, allocations: 171.1 kB / 403.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009092/0.6992, allocations: 5.629 MB / 409.6 MB, free: 7.254 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009001/0.7002, allocations: 1.049 MB / 410.6 MB, free: 6.176 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001159/0.7014, allocations: 122.9 kB / 410.7 MB, free: 6.051 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009999/0.7024, allocations: 387.3 kB / 411.1 MB, free: 5.672 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7024, allocations: 0 / 411.1 MB, free: 5.672 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.285/0.9874, allocations: 18.42 MB / 429.5 MB, free: 99.71 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002886/0.9878, allocations: 255.8 kB / 429.8 MB, free: 99.37 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.133/4.121, allocations: 1.188 kB / 429.8 MB, free: 99.37 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat