Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadModel(Modelica): time 1.262/1.262, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002714/0.0002715, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05851/0.05881, allocations: 25.16 MB / 184 MB, free: 6.023 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2492/0.3081, allocations: 45.11 MB / 229.2 MB, free: 1.527 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/0.3084, allocations: 79.89 kB / 229.2 MB, free: 1.484 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.512/0.8205, allocations: 70.26 MB / 299.5 MB, free: 41.25 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.8205, allocations: 3.344 kB / 299.5 MB, free: 41.25 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.001099/0.8216, allocations: 109.7 kB / 299.6 MB, free: 41.25 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 508 * Number of variables: 508 Notification: Performance of Generate backend data structure: time 0.02103/0.8427, allocations: 6.976 MB / 306.6 MB, free: 37.88 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.8427, allocations: 9.031 kB / 306.6 MB, free: 37.88 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002958/0.8457, allocations: 0.8548 MB / 307.4 MB, free: 37.41 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.012/0.8578, allocations: 3.535 MB / 311 MB, free: 36.28 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003186/0.8581, allocations: 149.6 kB / 311.1 MB, free: 36.28 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001545/0.8597, allocations: 215.8 kB / 311.3 MB, free: 36.28 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01783/0.8775, allocations: 5.856 MB / 317.2 MB, free: 36.16 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001631/0.8778, allocations: 14.14 kB / 317.2 MB, free: 36.15 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001174/0.8789, allocations: 96.09 kB / 317.3 MB, free: 36.15 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.29e-05/0.879, allocations: 49.69 kB / 317.3 MB, free: 36.15 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01483/0.8938, allocations: 5.546 MB / 322.9 MB, free: 36.13 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0299/0.9238, allocations: 10.38 MB / 333.3 MB, free: 34.56 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01242/0.9363, allocations: 5.631 MB / 338.9 MB, free: 32.92 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004935/0.9368, allocations: 123.3 kB / 339 MB, free: 32.82 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.334e-05/0.9369, allocations: 55.91 kB / 339.1 MB, free: 32.77 MB / 234.7 MB Notification: Performance of pre-optimization done (n=225): time 5.33e-06/0.9369, allocations: 0 / 339.1 MB, free: 32.77 MB / 234.7 MB Notification: Performance of matching and sorting (n=353): time 0.1448/1.082, allocations: 35.31 MB / 374.4 MB, free: 6.105 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4593/1.541, allocations: 36.55 MB / 410.9 MB, free: 49.22 MB / 250.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Magnetic/FluxTubes.mo:3057:9-3059:53:writable] Warning: Parameter advancedSolenoid.g_mFePole.r_i has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02161/1.563, allocations: 8.524 MB / 419.5 MB, free: 48.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001328/1.564, allocations: 96.98 kB / 419.6 MB, free: 48.73 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004339/1.568, allocations: 2.821 MB / 422.4 MB, free: 48.43 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002274/1.571, allocations: 1.19 MB / 423.6 MB, free: 47.97 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00131/1.572, allocations: 80.94 kB / 423.6 MB, free: 47.92 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000272/1.572, allocations: 435.5 kB / 424.1 MB, free: 47.55 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01147/1.584, allocations: 4.744 MB / 428.8 MB, free: 46.48 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01204/1.596, allocations: 5.043 MB / 433.9 MB, free: 45.19 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0121/1.608, allocations: 4.934 MB / 438.8 MB, free: 43.92 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.919e-05/1.608, allocations: 1.781 kB / 438.8 MB, free: 43.92 MB / 250.7 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.02902/1.637, allocations: 11.17 MB / 450 MB, free: 38.4 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/1.637, allocations: 8 kB / 450 MB, free: 38.39 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/1.637, allocations: 0 / 450 MB, free: 38.39 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01948/1.657, allocations: 1.603 MB / 451.6 MB, free: 37.19 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007478/1.664, allocations: 0.7525 MB / 452.3 MB, free: 36.58 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01293/1.677, allocations: 12.96 MB / 465.3 MB, free: 23.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006695/1.684, allocations: 179.4 kB / 465.5 MB, free: 23.03 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001709/1.686, allocations: 467 kB / 465.9 MB, free: 22.64 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (comparisonWithFEA.tableID,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 (299): * Single equations (assignments): 288 * Array equations: 2 * Algorithm blocks: 0 * 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 {3 37,5 46} Notification: Performance of prepare postOptimizeDAE: time 0.006852/1.693, allocations: 2.187 MB / 468.1 MB, free: 20.77 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002283/1.695, allocations: 0.828 MB / 468.9 MB, free: 19.94 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0367/1.732, allocations: 15.55 MB / 484.5 MB, free: 6.82 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006725/1.739, allocations: 2.172 MB / 486.7 MB, free: 4.859 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.424e-05/1.739, allocations: 8 kB / 486.7 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.114e-05/1.739, allocations: 18.09 kB / 486.7 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2131/1.952, allocations: 13.63 MB / 0.4886 GB, free: 46.11 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.657e-05/1.952, allocations: 6.062 kB / 0.4886 GB, free: 46.11 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005543/1.957, allocations: 494.3 kB / 0.4891 GB, free: 46.11 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0202/1.978, allocations: 1.646 MB / 0.4907 GB, free: 46.04 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0015/1.979, allocations: 176.1 kB / 0.4908 GB, free: 46.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01355/1.993, allocations: 12.65 MB / 0.5032 GB, free: 36.05 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2609/2.254, allocations: 32.09 MB / 0.5345 GB, free: 25.62 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06876/2.323, allocations: 22.83 MB / 0.5568 GB, free: 12.36 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001906/2.325, allocations: 0.7566 MB / 0.5576 GB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002827/2.327, allocations: 80 kB / 0.5576 GB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006203/2.334, allocations: 162.7 kB / 0.5578 GB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001033/2.335, allocations: 239.8 kB / 0.558 GB, free: 11.25 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001463/2.336, allocations: 458 kB / 0.5585 GB, free: 10.87 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.01513/2.351, allocations: 5.945 MB / 0.5643 GB, free: 6.074 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.332e-06/2.352, allocations: 0 / 0.5643 GB, free: 6.074 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.005987/2.358, allocations: 0.9747 MB / 0.5652 GB, free: 5.113 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 9 ($STATESET2.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel,$STATESET1.x[2],$STATESET1.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v) * Number of discrete variables: 5 (comparisonWithFEA.tableID,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 simulation (245): * Single equations (assignments): 235 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 5} * Non-linear torn systems: 2 {4 37,5 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.001432/2.359, allocations: 298.9 kB / 0.5655 GB, free: 4.895 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.01814/2.377, allocations: 8.264 MB / 0.5736 GB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/2.377, allocations: 0 / 0.5736 GB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01076/2.388, allocations: 4.731 MB / 0.5782 GB, free: 8.754 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005654/2.394, allocations: 494.3 kB / 0.5787 GB, free: 8.277 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2359/2.63, allocations: 20.18 MB / 0.5984 GB, free: 56.56 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009653/2.639, allocations: 4.109 MB / 0.6024 GB, free: 55.72 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002262/2.642, allocations: 245.3 kB / 0.6026 GB, free: 55.72 MB / 266.7 MB Notification: Performance of SimCode: time 1.483e-06/2.642, allocations: 0 / 0.6026 GB, free: 55.72 MB / 266.7 MB Notification: Performance of Templates: time 2.664/5.306, allocations: 0.5263 GB / 1.129 GB, free: 80.05 MB / 298.7 MB