Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.176/2.176, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003474, allocations: 11.94 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1105, allocations: 44.5 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4188/0.5293, allocations: 84.13 MB / 392.7 MB, free: 14.47 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003245/0.5297, allocations: 87.88 kB / 392.8 MB, free: 14.47 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.08021/0.61, allocations: 21.37 MB / 414.1 MB, free: 8.559 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.175e-06/0.61, allocations: 0 / 414.1 MB, free: 8.559 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.814e-05/0.6101, allocations: 31.22 kB / 414.2 MB, free: 8.551 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.003787/0.6139, allocations: 1.366 MB / 415.5 MB, free: 7.629 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.6139, allocations: 11.09 kB / 415.5 MB, free: 7.625 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002481/0.6142, allocations: 151.3 kB / 415.7 MB, free: 7.559 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002805/0.6145, allocations: 128 kB / 415.8 MB, free: 7.496 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001327/0.6158, allocations: 0.6476 MB / 416.5 MB, free: 7.105 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.616, allocations: 79.58 kB / 416.5 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002027/0.6162, allocations: 95.03 kB / 416.6 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002953/0.6192, allocations: 1.049 MB / 417.7 MB, free: 6.824 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.374e-05/0.6193, allocations: 3.906 kB / 417.7 MB, free: 6.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.6194, allocations: 36.41 kB / 417.7 MB, free: 6.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/0.6194, allocations: 23.41 kB / 417.7 MB, free: 6.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003398/0.6228, allocations: 0.9753 MB / 418.7 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007908/0.6308, allocations: 3.851 MB / 422.6 MB, free: 4.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003992/0.6348, allocations: 0.9613 MB / 423.5 MB, free: 4.461 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.353e-05/0.6349, allocations: 22.02 kB / 423.5 MB, free: 4.453 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.6349, allocations: 44.17 kB / 423.6 MB, free: 4.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.467e-06/0.635, allocations: 0 / 423.6 MB, free: 4.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=82): time 0.008815/0.6438, allocations: 2.213 MB / 425.8 MB, free: 3.734 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.6439, allocations: 87.17 kB / 425.9 MB, free: 3.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/0.6454, allocations: 0.8229 MB / 426.7 MB, free: 3.398 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.103e-05/0.6455, allocations: 40.14 kB / 426.7 MB, free: 3.367 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.6458, allocations: 0.5067 MB / 427.3 MB, free: 3.035 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.6461, allocations: 278.9 kB / 427.5 MB, free: 2.836 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.785e-05/0.6462, allocations: 16.94 kB / 427.5 MB, free: 2.836 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.408e-05/0.6463, allocations: 347.7 kB / 427.9 MB, free: 2.512 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001683/0.648, allocations: 415.6 kB / 428.3 MB, free: 2.445 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001728/0.6497, allocations: 0.5709 MB / 428.9 MB, free: 2.207 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/0.6515, allocations: 470.6 kB / 429.3 MB, free: 2.121 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.6515, allocations: 3.875 kB / 429.3 MB, free: 2.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003828/0.6553, allocations: 1.12 MB / 430.4 MB, free: 1.863 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.163e-05/0.6554, allocations: 37.39 kB / 430.5 MB, free: 1.828 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.6554, allocations: 7.844 kB / 430.5 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.418e-05/0.6555, allocations: 15.67 kB / 430.5 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002487/0.658, allocations: 335.1 kB / 430.8 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.1e-05/0.658, allocations: 11.62 kB / 430.8 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.6597, allocations: 123.3 kB / 431 MB, free: 1.699 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.732e-05/0.6599, allocations: 36.77 kB / 431 MB, free: 1.695 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.0006572/0.6605, allocations: 288.6 kB / 431.3 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.6607, allocations: 97.03 kB / 431.4 MB, free: 1.508 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001688/0.6624, allocations: 482.5 kB / 431.8 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.6625, allocations: 11.73 kB / 431.9 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.6625, allocations: 3.953 kB / 431.9 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.6625, allocations: 11.73 kB / 431.9 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006618/0.6691, allocations: 2.92 MB / 434.8 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.6692, allocations: 11.75 kB / 434.8 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001827/0.671, allocations: 260.4 kB / 435.1 MB, free: 36 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-05/0.6711, allocations: 15.03 kB / 435.1 MB, free: 36 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-05/0.6711, allocations: 37.25 kB / 435.1 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-05/0.6712, allocations: 27.11 kB / 435.1 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/0.6712, allocations: 15.47 kB / 435.1 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003642/0.6748, allocations: 1.742 MB / 436.9 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003972/0.6753, allocations: 203.4 kB / 437.1 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.6755, allocations: 30.05 kB / 437.1 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/0.6768, allocations: 82 kB / 437.2 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.677, allocations: 84.14 kB / 437.3 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-05/0.6771, allocations: 43.3 kB / 437.3 MB, free: 13.99 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001415/0.6785, allocations: 0.6266 MB / 437.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6786, allocations: 0 / 437.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00133/0.6799, allocations: 229.7 kB / 438.2 MB, free: 13.34 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.005803/0.6857, allocations: 5.446 MB / 443.6 MB, free: 7.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003693/0.6894, allocations: 0.9443 MB / 444.6 MB, free: 6.707 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.686e-06/0.6895, allocations: 0 / 444.6 MB, free: 6.707 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.6912, allocations: 470.3 kB / 445 MB, free: 6.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.6928, allocations: 185.2 kB / 445.2 MB, free: 6.074 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008057/0.7009, allocations: 5.678 MB / 450.9 MB, free: 120 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008986/0.7019, allocations: 1.045 MB / 451.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/0.703, allocations: 399.3 kB / 452.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of SimCode: time 1.483e-06/0.703, allocations: 0 / 452.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.941/3.645, allocations: 17.51 MB / 469.8 MB, free: 13.16 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat