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.ArmatureStroke.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.ArmatureStroke,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003529, allocations: 11.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09626/0.09666, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4324/0.5291, allocations: 82.6 MB / 391.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.5295, allocations: 89.27 kB / 391.2 MB, free: 14.48 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.1388/0.6683, allocations: 35.66 MB / 426.9 MB, free: 3.789 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6683, allocations: 4 kB / 426.9 MB, free: 3.785 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.174e-05/0.6684, allocations: 26.12 kB / 426.9 MB, free: 3.785 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.003455/0.6719, allocations: 1.246 MB / 428.2 MB, free: 2.957 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.6719, allocations: 7.438 kB / 428.2 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002346/0.6722, allocations: 141.8 kB / 428.3 MB, free: 2.898 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002435/0.6724, allocations: 119.4 kB / 428.4 MB, free: 2.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.6736, allocations: 0.6083 MB / 429 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.6738, allocations: 82.77 kB / 429.1 MB, free: 2.453 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002035/0.674, allocations: 106.6 kB / 429.2 MB, free: 2.441 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002723/0.6768, allocations: 1.025 MB / 430.2 MB, free: 2.184 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.058e-05/0.6768, allocations: 11.77 kB / 430.3 MB, free: 2.176 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/0.677, allocations: 43.94 kB / 430.3 MB, free: 2.172 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.677, allocations: 23.38 kB / 430.3 MB, free: 2.172 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003056/0.6801, allocations: 0.9402 MB / 431.3 MB, free: 2.023 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007676/0.6878, allocations: 3.561 MB / 434.8 MB, free: 328 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.6902, allocations: 0.8698 MB / 435.7 MB, free: 180 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.659e-05/0.6903, allocations: 19.59 kB / 435.7 MB, free: 176 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.6903, allocations: 50.62 kB / 435.8 MB, free: 128 kB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 3.737e-06/0.6904, allocations: 0 / 435.8 MB, free: 128 kB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.01832/0.7087, allocations: 4.75 MB / 440.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/0.7088, allocations: 90.2 kB / 440.6 MB, free: 11.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.7101, allocations: 0.5412 MB / 441.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00026/0.7104, allocations: 45.7 kB / 441.2 MB, free: 11.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003808/0.7108, allocations: 446.7 kB / 441.6 MB, free: 10.87 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005924/0.7114, allocations: 424.8 kB / 442 MB, free: 10.46 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.7115, allocations: 28 kB / 442.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.7117, allocations: 358.8 kB / 442.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.7134, allocations: 426.4 kB / 442.8 MB, free: 9.656 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001882/0.7153, allocations: 0.5553 MB / 443.4 MB, free: 9.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/0.7172, allocations: 483.7 kB / 443.9 MB, free: 8.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.7172, allocations: 0 / 443.9 MB, free: 8.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004563/0.7218, allocations: 1.263 MB / 445.1 MB, free: 7.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.7219, allocations: 4 kB / 445.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.7219, allocations: 7.953 kB / 445.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006512/0.7226, allocations: 134.5 kB / 445.3 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002274/0.7249, allocations: 279.6 kB / 445.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00559/0.7305, allocations: 4.552 MB / 450.1 MB, free: 1.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/0.7322, allocations: 84 kB / 450.2 MB, free: 1.859 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.7325, allocations: 39.98 kB / 450.2 MB, free: 1.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000846/0.7333, allocations: 277.6 kB / 450.5 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003267/0.7337, allocations: 94.88 kB / 450.6 MB, free: 1.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002948/0.7366, allocations: 0.8282 MB / 451.4 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.362e-05/0.7367, allocations: 12 kB / 451.4 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/0.7367, allocations: 4.188 kB / 451.4 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.552e-05/0.7368, allocations: 11.91 kB / 451.4 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008805/0.7456, allocations: 3.017 MB / 454.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.7456, allocations: 7.938 kB / 454.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001973/0.7476, allocations: 232 kB / 454.7 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007939/0.7484, allocations: 163.2 kB / 454.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001719/0.7486, allocations: 24 kB / 454.9 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006024/0.7547, allocations: 5.612 MB / 460.5 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.7547, allocations: 7.938 kB / 460.5 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00651/0.7612, allocations: 2.091 MB / 462.6 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004787/0.7618, allocations: 172 kB / 462.7 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002824/0.7621, allocations: 28 kB / 462.8 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.7633, allocations: 75.95 kB / 462.8 MB, free: 4.371 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/0.7636, allocations: 92.42 kB / 462.9 MB, free: 4.281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.7637, allocations: 35.98 kB / 463 MB, free: 4.246 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009732/0.7647, allocations: 447.1 kB / 463.4 MB, free: 3.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7647, allocations: 0 / 463.4 MB, free: 3.809 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001678/0.7664, allocations: 272 kB / 463.7 MB, free: 3.543 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007246/0.7737, allocations: 3.459 MB / 467.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004706/0.7784, allocations: 1.462 MB / 468.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/0.7785, allocations: 4 kB / 468.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002958/0.7815, allocations: 1.089 MB / 469.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.7833, allocations: 167.2 kB / 469.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02119/0.8046, allocations: 8.024 MB / 477.9 MB, free: 4.879 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008957/0.8055, allocations: 1.056 MB / 478.9 MB, free: 3.801 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.8067, allocations: 403.3 kB / 479.3 MB, free: 3.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.021e-06/0.8068, allocations: 4 kB / 479.3 MB, free: 3.406 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.28/4.086, allocations: 32.89 MB / 0.5002 GB, free: 2.477 MB / 394.7 MB