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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.269/2.269, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004353/0.0004353, allocations: 12 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3045, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1546/0.4592, allocations: 84.13 MB / 392.7 MB, free: 8.414 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/0.4596, allocations: 95.95 kB / 392.8 MB, free: 8.32 MB / 330.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.09633/0.5559, allocations: 21.36 MB / 414.1 MB, free: 2.879 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.556, allocations: 0 / 414.1 MB, free: 2.879 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001084/0.5561, allocations: 31.98 kB / 414.2 MB, free: 2.848 MB / 346.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.005302/0.5614, allocations: 1.378 MB / 415.6 MB, free: 1.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.5615, allocations: 12.03 kB / 415.6 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006253/0.5622, allocations: 140 kB / 415.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004566/0.5626, allocations: 130.5 kB / 415.8 MB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002061/0.5647, allocations: 0.6444 MB / 416.5 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.565, allocations: 85.98 kB / 416.6 MB, free: 360 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003697/0.5654, allocations: 96 kB / 416.7 MB, free: 264 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2669/0.8323, allocations: 1.035 MB / 417.7 MB, free: 86.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.343e-05/0.8324, allocations: 4.062 kB / 417.7 MB, free: 86.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001543/0.8326, allocations: 40.06 kB / 417.7 MB, free: 86.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.32e-05/0.8327, allocations: 23.31 kB / 417.8 MB, free: 86.53 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00456/0.8372, allocations: 0.9761 MB / 418.7 MB, free: 86.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009766/0.847, allocations: 3.856 MB / 422.6 MB, free: 85.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004155/0.8512, allocations: 0.9598 MB / 423.5 MB, free: 85.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.8514, allocations: 11.91 kB / 423.6 MB, free: 85.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.8515, allocations: 40.84 kB / 423.6 MB, free: 85.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=68): time 3.807e-06/0.8515, allocations: 3.391 kB / 423.6 MB, free: 85.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=82): time 0.009456/0.861, allocations: 2.217 MB / 425.8 MB, free: 84.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.8611, allocations: 89.44 kB / 425.9 MB, free: 84.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/0.8628, allocations: 0.8156 MB / 426.7 MB, free: 84.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/0.863, allocations: 39.89 kB / 426.8 MB, free: 84.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003974/0.8634, allocations: 0.5071 MB / 427.3 MB, free: 84.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000313/0.8637, allocations: 271 kB / 427.5 MB, free: 84.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.655e-05/0.8639, allocations: 19.81 kB / 427.6 MB, free: 84.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.31e-05/0.864, allocations: 345 kB / 427.9 MB, free: 83.88 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00176/0.8657, allocations: 416.8 kB / 428.3 MB, free: 83.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/0.8677, allocations: 0.565 MB / 428.9 MB, free: 83.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001882/0.8697, allocations: 481 kB / 429.3 MB, free: 83.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.8697, allocations: 4 kB / 429.3 MB, free: 83.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.004488/0.8742, allocations: 1.177 MB / 430.5 MB, free: 82.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.978e-05/0.8743, allocations: 39.77 kB / 430.5 MB, free: 82.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.8743, allocations: 5.062 kB / 430.6 MB, free: 82.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.83e-05/0.8744, allocations: 11.38 kB / 430.6 MB, free: 82.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002583/0.877, allocations: 335.4 kB / 430.9 MB, free: 82.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.96e-05/0.8771, allocations: 15.89 kB / 430.9 MB, free: 82.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.8789, allocations: 116.2 kB / 431 MB, free: 82.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001636/0.8791, allocations: 45.31 kB / 431.1 MB, free: 82.73 MB / 346.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.0007618/0.8799, allocations: 282.3 kB / 431.3 MB, free: 82.53 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000305/0.8802, allocations: 94.75 kB / 431.4 MB, free: 82.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001791/0.882, allocations: 489.8 kB / 431.9 MB, free: 82.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.8821, allocations: 10.5 kB / 431.9 MB, free: 82.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.8821, allocations: 0 / 431.9 MB, free: 82.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.858e-05/0.8821, allocations: 3.562 kB / 431.9 MB, free: 82.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00759/0.8897, allocations: 2.924 MB / 434.9 MB, free: 80.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.655e-05/0.8898, allocations: 15.66 kB / 434.9 MB, free: 80.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001826/0.8916, allocations: 257.1 kB / 435.1 MB, free: 80.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.47e-05/0.8917, allocations: 18.34 kB / 435.1 MB, free: 80.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.592e-05/0.8918, allocations: 29.88 kB / 435.2 MB, free: 80.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-05/0.8918, allocations: 22.11 kB / 435.2 MB, free: 80.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-05/0.8918, allocations: 13.69 kB / 435.2 MB, free: 80.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/0.8951, allocations: 1.756 MB / 437 MB, free: 78.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000487/0.8956, allocations: 198 kB / 437.1 MB, free: 78.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.8959, allocations: 36.05 kB / 437.2 MB, free: 78.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/0.8972, allocations: 81.95 kB / 437.3 MB, free: 78.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/0.8974, allocations: 93.22 kB / 437.4 MB, free: 78.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.427e-05/0.8975, allocations: 34.83 kB / 437.4 MB, free: 78.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001297/0.8988, allocations: 0.6268 MB / 438 MB, free: 78.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.8988, allocations: 0 / 438 MB, free: 78.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001568/0.9004, allocations: 237.5 kB / 438.2 MB, free: 78.38 MB / 346.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.004884/0.9053, allocations: 5.449 MB / 443.7 MB, free: 73.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003529/0.9089, allocations: 0.9498 MB / 444.6 MB, free: 72.47 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/0.909, allocations: 4 kB / 444.6 MB, free: 72.47 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001674/0.9107, allocations: 468.1 kB / 445.1 MB, free: 72.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/0.9124, allocations: 175.4 kB / 445.3 MB, free: 71.92 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007504/0.92, allocations: 5.637 MB / 450.9 MB, free: 66.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006594/0.9207, allocations: 1.046 MB / 452 MB, free: 65.37 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001127/0.9218, allocations: 129.7 kB / 452.1 MB, free: 65.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008625/0.9227, allocations: 383.5 kB / 452.5 MB, free: 64.93 MB / 346.7 MB Notification: Performance of SimCode: time 1.272e-06/0.9227, allocations: 0 / 452.5 MB, free: 64.93 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07387/0.9966, allocations: 18.43 MB / 470.9 MB, free: 49.02 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003009/0.997, allocations: 270.7 kB / 471.2 MB, free: 48.66 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.291/4.288, allocations: 4 kB / 471.2 MB, free: 48.66 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat