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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.694/1.694, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 12 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07993/0.08031, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3502/0.4305, allocations: 79.29 MB / 351.4 MB, free: 10.23 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003319/0.4309, allocations: 90.58 kB / 351.5 MB, free: 10.19 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09333/0.5243, allocations: 21.35 MB / 372.8 MB, free: 8.289 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.5243, allocations: 0 / 372.8 MB, free: 8.289 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.379e-05/0.5244, allocations: 23.98 kB / 372.9 MB, free: 8.266 MB / 298.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.004545/0.529, allocations: 1.368 MB / 374.2 MB, free: 6.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.5291, allocations: 8.031 kB / 374.2 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003819/0.5295, allocations: 149.6 kB / 374.4 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003335/0.5298, allocations: 130.5 kB / 374.5 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/0.5314, allocations: 0.6494 MB / 375.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.5316, allocations: 72.81 kB / 375.2 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.5318, allocations: 98.47 kB / 375.3 MB, free: 6.027 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003298/0.5352, allocations: 1.039 MB / 376.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.432e-05/0.5352, allocations: 0 / 376.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001425/0.5354, allocations: 39.81 kB / 376.4 MB, free: 5.312 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.171e-05/0.5354, allocations: 27.94 kB / 376.4 MB, free: 5.285 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003715/0.5392, allocations: 0.9774 MB / 377.4 MB, free: 4.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009291/0.5485, allocations: 3.836 MB / 381.2 MB, free: 1.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004312/0.5529, allocations: 0.9503 MB / 382.2 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.851e-05/0.553, allocations: 20.03 kB / 382.2 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/0.553, allocations: 42 kB / 382.3 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 3.527e-06/0.5531, allocations: 3.938 kB / 382.3 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of matching and sorting (n=82): time 0.009797/0.5629, allocations: 2.215 MB / 384.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.563, allocations: 85.55 kB / 384.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00182/0.5648, allocations: 0.8106 MB / 385.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001646/0.565, allocations: 41.7 kB / 385.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004662/0.5655, allocations: 0.517 MB / 385.9 MB, free: 13.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003594/0.5659, allocations: 279.9 kB / 386.2 MB, free: 13.4 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.884e-05/0.566, allocations: 20 kB / 386.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.5662, allocations: 350.6 kB / 386.6 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0019/0.5681, allocations: 417.8 kB / 387 MB, free: 12.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002011/0.5701, allocations: 0.5681 MB / 387.5 MB, free: 12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001952/0.5721, allocations: 479.7 kB / 388 MB, free: 11.53 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.5721, allocations: 0 / 388 MB, free: 11.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.004357/0.5765, allocations: 1.125 MB / 389.1 MB, free: 10.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.007e-05/0.5766, allocations: 38.31 kB / 389.2 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.8e-05/0.5766, allocations: 4 kB / 389.2 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.065e-05/0.5766, allocations: 8 kB / 389.2 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002652/0.5793, allocations: 339.6 kB / 389.5 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-05/0.5793, allocations: 8 kB / 389.5 MB, free: 9.992 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.5811, allocations: 115.9 kB / 389.6 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.5812, allocations: 35.98 kB / 389.7 MB, free: 9.844 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.0007621/0.582, allocations: 293.5 kB / 390 MB, free: 9.547 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002588/0.5823, allocations: 90.88 kB / 390 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/0.5841, allocations: 494 kB / 390.5 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.5842, allocations: 8 kB / 390.5 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.5842, allocations: 4 kB / 390.5 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.5842, allocations: 3.984 kB / 390.5 MB, free: 8.945 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007883/0.5921, allocations: 2.941 MB / 393.5 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.541e-05/0.5922, allocations: 8 kB / 393.5 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001875/0.5941, allocations: 255.7 kB / 393.7 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.951e-05/0.5941, allocations: 19.98 kB / 393.8 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-05/0.5942, allocations: 28 kB / 393.8 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.948e-05/0.5942, allocations: 19.92 kB / 393.8 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-05/0.5943, allocations: 15.94 kB / 393.8 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003735/0.598, allocations: 1.75 MB / 395.6 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004618/0.5985, allocations: 203.9 kB / 395.8 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002306/0.5988, allocations: 35.94 kB / 395.8 MB, free: 3.059 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.6, allocations: 87.88 kB / 395.9 MB, free: 2.973 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.6003, allocations: 87.7 kB / 396 MB, free: 2.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-05/0.6004, allocations: 35.98 kB / 396 MB, free: 2.852 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001419/0.6018, allocations: 0.6279 MB / 396.6 MB, free: 2.227 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6018, allocations: 0 / 396.6 MB, free: 2.227 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001472/0.6033, allocations: 228 kB / 396.9 MB, free: 2.004 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.005778/0.6091, allocations: 5.408 MB / 402.3 MB, free: 12.31 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003781/0.6129, allocations: 0.9447 MB / 403.2 MB, free: 11.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.524e-05/0.613, allocations: 7.938 kB / 403.2 MB, free: 11.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.6148, allocations: 466.8 kB / 403.7 MB, free: 10.9 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001752/0.6166, allocations: 186.4 kB / 403.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009103/0.6257, allocations: 5.666 MB / 409.5 MB, free: 4.789 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009881/0.6268, allocations: 1.045 MB / 410.6 MB, free: 3.715 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/0.628, allocations: 395.3 kB / 411 MB, free: 3.328 MB / 330.7 MB Notification: Performance of SimCode: time 1.312e-06/0.628, allocations: 0 / 411 MB, free: 3.328 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.728/3.356, allocations: 17.46 MB / 428.4 MB, free: 1.883 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat