Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 0.9293/0.9293, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.0002657, allocations: 4 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04592/0.04621, allocations: 25.17 MB / 183.5 MB, free: 5.973 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1862/0.2325, allocations: 45.53 MB / 229 MB, free: 1.051 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.2327, allocations: 69.78 kB / 229.1 MB, free: 1.016 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1776/0.4104, allocations: 42.97 MB / 272.1 MB, free: 9.973 MB / 218.7 MB Notification: Performance of FrontEnd: time 4.204e-06/0.4105, allocations: 3.938 kB / 272.1 MB, free: 9.969 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0003061/0.4108, allocations: 51.98 kB / 272.1 MB, free: 9.918 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01534/0.4262, allocations: 2.55 MB / 274.7 MB, free: 7.309 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.057e-05/0.4263, allocations: 8.031 kB / 274.7 MB, free: 7.301 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001743/0.428, allocations: 289.3 kB / 275 MB, free: 7.016 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007058/0.4351, allocations: 1.254 MB / 276.2 MB, free: 5.711 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003778/0.4355, allocations: 148 kB / 276.4 MB, free: 5.566 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009686/0.4365, allocations: 199.9 kB / 276.6 MB, free: 5.371 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01312/0.4497, allocations: 2.206 MB / 278.8 MB, free: 3.148 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001408/0.4499, allocations: 4 kB / 278.8 MB, free: 3.145 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006447/0.4506, allocations: 80 kB / 278.9 MB, free: 3.066 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001096/0.4507, allocations: 48 kB / 278.9 MB, free: 3.02 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01394/0.4647, allocations: 2.057 MB / 281 MB, free: 0.957 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02367/0.4884, allocations: 7.388 MB / 288.3 MB, free: 9.363 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005459/0.4939, allocations: 2.384 MB / 290.7 MB, free: 6.922 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002604/0.4942, allocations: 119.1 kB / 290.9 MB, free: 6.789 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.472e-05/0.4942, allocations: 60.52 kB / 290.9 MB, free: 6.723 MB / 234.7 MB Notification: Performance of pre-optimization done (n=220): time 6.361e-06/0.4943, allocations: 0 / 290.9 MB, free: 6.723 MB / 234.7 MB Notification: Performance of matching and sorting (n=348): time 0.2141/0.7083, allocations: 19.25 MB / 310.2 MB, free: 49.26 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2396/0.948, allocations: 36.37 MB / 346.5 MB, free: 34.52 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.002748/0.9508, allocations: 1.406 MB / 347.9 MB, free: 33.99 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005558/0.9514, allocations: 81.2 kB / 348 MB, free: 33.92 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000579/0.9519, allocations: 0.8913 MB / 348.9 MB, free: 33.24 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001133/0.9531, allocations: 1.145 MB / 350.1 MB, free: 32.39 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003238/0.9534, allocations: 66.66 kB / 350.1 MB, free: 32.35 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.9536, allocations: 430.9 kB / 350.5 MB, free: 31.98 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003843/0.9575, allocations: 1.5 MB / 352 MB, free: 30.82 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004023/0.9615, allocations: 1.787 MB / 353.8 MB, free: 29.19 MB / 234.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: advancedSolenoid.armature.mass.v = $START.advancedSolenoid.armature.mass.v (if time < x_set.startTime then 0.0 else if time < x_set.startTime + x_set.duration then x_set.height / x_set.duration else 0.0 = $START.advancedSolenoid.armature.mass.v) Notification: Performance of analyzeInitialSystem (initialization): time 0.04287/1.004, allocations: 7.189 MB / 361 MB, free: 23.52 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/1.004, allocations: 4 kB / 361 MB, free: 23.51 MB / 234.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01076/1.015, allocations: 4.422 MB / 365.4 MB, free: 19.2 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/1.015, allocations: 6.031 kB / 365.4 MB, free: 19.2 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/1.015, allocations: 4 kB / 365.5 MB, free: 19.19 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01151/1.027, allocations: 1.538 MB / 367 MB, free: 17.64 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004042/1.031, allocations: 0.5985 MB / 367.6 MB, free: 17.07 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009013/1.04, allocations: 9.934 MB / 377.5 MB, free: 6.488 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003324/1.043, allocations: 171.9 kB / 377.7 MB, free: 6.32 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004381/1.044, allocations: 139.9 kB / 377.8 MB, free: 6.184 MB / 234.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: advancedSolenoid.armature.mass.v = $START.advancedSolenoid.armature.mass.v. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (300): * Single equations (assignments): 291 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 37,5 46} Notification: Performance of prepare postOptimizeDAE: time 0.001728/1.046, allocations: 0.5824 MB / 378.4 MB, free: 5.598 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000646/1.046, allocations: 252.9 kB / 378.7 MB, free: 5.348 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/1.057, allocations: 4.744 MB / 383.4 MB, free: 0.543 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01165/1.069, allocations: 4.125 MB / 387.5 MB, free: 12.36 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.807e-05/1.069, allocations: 4 kB / 387.5 MB, free: 12.36 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.273e-05/1.069, allocations: 19.88 kB / 387.5 MB, free: 12.34 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02581/1.095, allocations: 9.82 MB / 397.4 MB, free: 2.387 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.108e-05/1.095, allocations: 8.094 kB / 397.4 MB, free: 2.379 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003777/1.099, allocations: 0.5031 MB / 397.9 MB, free: 1.875 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0127/1.112, allocations: 1.594 MB / 399.5 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006199/1.112, allocations: 98.72 kB / 399.6 MB, free: 172 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1487/1.261, allocations: 9.93 MB / 409.5 MB, free: 52.82 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1673/1.428, allocations: 32.56 MB / 442.1 MB, free: 43.32 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01748/1.446, allocations: 7.078 MB / 449.1 MB, free: 39.91 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002107/1.448, allocations: 0.695 MB / 449.8 MB, free: 39.42 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000719/1.449, allocations: 69.8 kB / 449.9 MB, free: 39.37 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003195/1.452, allocations: 166.5 kB / 450.1 MB, free: 39.32 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005836/1.453, allocations: 225.7 kB / 450.3 MB, free: 39.29 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003581/1.453, allocations: 129.2 kB / 450.4 MB, free: 39.27 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.002133/1.455, allocations: 1.095 MB / 451.5 MB, free: 38.85 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.54e-07/1.455, allocations: 0 / 451.5 MB, free: 38.85 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003616/1.459, allocations: 0.8293 MB / 452.3 MB, free: 38.73 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 7 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 233 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 4,(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.0007739/1.46, allocations: 257.8 kB / 452.6 MB, free: 38.59 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.01088/1.471, allocations: 4.323 MB / 456.9 MB, free: 36.69 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/1.471, allocations: 3.812 kB / 456.9 MB, free: 36.69 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006438/1.477, allocations: 2.689 MB / 459.6 MB, free: 34.88 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002519/1.48, allocations: 334.1 kB / 459.9 MB, free: 34.61 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/1.494, allocations: 7.891 MB / 467.8 MB, free: 27.33 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/1.496, allocations: 1.741 MB / 469.6 MB, free: 25.93 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001736/1.498, allocations: 243.1 kB / 469.8 MB, free: 25.76 MB / 250.7 MB Notification: Performance of SimCode: time 1.838e-06/1.498, allocations: 0 / 469.8 MB, free: 25.76 MB / 250.7 MB Notification: Performance of Templates: time 0.2849/1.783, allocations: 122.2 MB / 0.5781 GB, free: 7.012 MB / 266.7 MB