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.SolenoidActuator.ComparisonPullInStroke.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.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003563, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09475/0.09514, allocations: 44.51 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.441/0.5362, allocations: 87.52 MB / 396.1 MB, free: 14.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.5366, allocations: 87.14 kB / 396.2 MB, free: 14.43 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.3224/0.859, allocations: 77.42 MB / 473.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.859, allocations: 0 / 473.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00116/0.8602, allocations: 112 kB / 473.7 MB, free: 12.88 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.02231/0.8826, allocations: 6.985 MB / 480.7 MB, free: 5.785 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.206e-05/0.8827, allocations: 12.03 kB / 480.7 MB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001361/0.884, allocations: 295.3 kB / 481 MB, free: 5.473 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003013/0.8871, allocations: 0.8602 MB / 481.8 MB, free: 4.602 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01363/0.9008, allocations: 3.626 MB / 485.5 MB, free: 1.098 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003114/0.9011, allocations: 160.1 kB / 485.6 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000962/0.9021, allocations: 211.9 kB / 485.8 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00957/0.9117, allocations: 2.135 MB / 487.9 MB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001278/0.9119, allocations: 3.938 kB / 488 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005339/0.9125, allocations: 88 kB / 488 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-05/0.9125, allocations: 48 kB / 488.1 MB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008671/0.9212, allocations: 1.993 MB / 490.1 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0328/0.9541, allocations: 10.15 MB / 0.4885 GB, free: 2.094 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007806/0.9619, allocations: 2.418 MB / 0.4909 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003934/0.9624, allocations: 40.59 kB / 0.4909 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004977/0.9674, allocations: 1.198 MB / 0.4921 GB, free: 14.35 MB / 394.7 MB Notification: Performance of pre-optimization done (n=246): time 9.779e-06/0.9674, allocations: 0 / 0.4921 GB, free: 14.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=385): time 0.1138/1.081, allocations: 21.64 MB / 0.5132 GB, free: 8.426 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.476/1.557, allocations: 34.48 MB / 0.5469 GB, free: 94.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2208/1.778, allocations: 13.46 MB / 0.56 GB, free: 90.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002706/1.781, allocations: 94.08 kB / 0.5601 GB, free: 90.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.01249/1.793, allocations: 2.834 MB / 0.5629 GB, free: 88.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002359/1.796, allocations: 1.277 MB / 0.5641 GB, free: 87.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006463/1.797, allocations: 69.91 kB / 0.5642 GB, free: 87.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002865/1.797, allocations: 444.5 kB / 0.5646 GB, free: 87.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01274/1.81, allocations: 1.379 MB / 0.566 GB, free: 86.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007271/1.817, allocations: 1.72 MB / 0.5676 GB, free: 85.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005685/1.823, allocations: 1.606 MB / 0.5692 GB, free: 85.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.241e-05/1.823, allocations: 0 / 0.5692 GB, free: 85.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=453) (initialization): time 0.02051/1.843, allocations: 4.889 MB / 0.574 GB, free: 83.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.33e-05/1.843, allocations: 43.58 kB / 0.574 GB, free: 83.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/1.843, allocations: 3.469 kB / 0.574 GB, free: 83.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01224/1.856, allocations: 1.464 MB / 0.5755 GB, free: 82.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008097/1.864, allocations: 0.5673 MB / 0.576 GB, free: 82.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08467/1.949, allocations: 22.67 MB / 0.5982 GB, free: 65.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00807/1.957, allocations: 206.4 kB / 0.5983 GB, free: 65.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001005/1.958, allocations: 120.9 kB / 0.5985 GB, free: 65.11 MB / 410.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: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (321): * Single equations (assignments): 309 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.007763/1.966, allocations: 2.197 MB / 0.6006 GB, free: 63.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003225/1.969, allocations: 0.8488 MB / 0.6014 GB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02837/1.997, allocations: 5.644 MB / 0.6069 GB, free: 58.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009354/2.007, allocations: 2.479 MB / 0.6094 GB, free: 55.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.723e-05/2.007, allocations: 8 kB / 0.6094 GB, free: 55.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001194/2.007, allocations: 19.33 kB / 0.6094 GB, free: 55.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05715/2.064, allocations: 14.19 MB / 0.6233 GB, free: 44.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.138e-05/2.064, allocations: 8.25 kB / 0.6233 GB, free: 44.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006367/2.071, allocations: 487.8 kB / 0.6237 GB, free: 43.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01319/2.084, allocations: 1.47 MB / 0.6252 GB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008277/2.085, allocations: 78.83 kB / 0.6252 GB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03662/2.121, allocations: 20.86 MB / 0.6456 GB, free: 22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1429/2.264, allocations: 30.5 MB / 0.6754 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03/2.294, allocations: 8.067 MB / 0.6833 GB, free: 0.9102 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3019/2.596, allocations: 1.924 MB / 0.6851 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002176/2.598, allocations: 86.88 kB / 0.6852 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005916/2.604, allocations: 176.1 kB / 0.6854 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001536/2.606, allocations: 291.7 kB / 0.6857 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005333/2.607, allocations: 100.3 kB / 0.6858 GB, free: 102.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.02868/2.635, allocations: 10.87 MB / 0.6964 GB, free: 101.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/2.635, allocations: 0 / 0.6964 GB, free: 101.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00873/2.644, allocations: 1.764 MB / 0.6981 GB, free: 101.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (266): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.02934/2.674, allocations: 9.333 MB / 0.7072 GB, free: 99.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01423/2.688, allocations: 5.174 MB / 0.7123 GB, free: 98.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/2.688, allocations: 0 / 0.7123 GB, free: 98.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009138/2.697, allocations: 3.534 MB / 0.7157 GB, free: 97.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006281/2.703, allocations: 493.7 kB / 0.7162 GB, free: 97.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08652/2.79, allocations: 54.14 MB / 0.7691 GB, free: 57.08 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01041/2.8, allocations: 4.217 MB / 0.7732 GB, free: 55.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008953/2.809, allocations: 3.448 MB / 0.7765 GB, free: 53.03 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/2.809, allocations: 1.312 kB / 0.7765 GB, free: 53.03 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.649/12.46, allocations: 0.851 GB / 1.628 GB, free: 105.5 MB / 458.7 MB