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.ComparisonPullInStroke.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.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 0.9344/0.9344, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.000266, allocations: 4 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0459/0.04619, allocations: 25.17 MB / 183.5 MB, free: 5.973 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1836/0.2299, allocations: 45.12 MB / 228.6 MB, free: 1.453 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.2301, allocations: 71.64 kB / 228.7 MB, free: 1.414 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.507/0.7371, allocations: 70.25 MB / 299 MB, free: 41.23 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.286e-06/0.7372, allocations: 1.562 kB / 299 MB, free: 41.23 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0007546/0.7379, allocations: 111.3 kB / 299.1 MB, free: 41.23 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.0154/0.7533, allocations: 6.977 MB / 306 MB, free: 37.8 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.7534, allocations: 9.625 kB / 306 MB, free: 37.8 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001911/0.7553, allocations: 0.8614 MB / 306.9 MB, free: 37.34 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008925/0.7643, allocations: 3.536 MB / 310.4 MB, free: 36.21 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/0.7646, allocations: 148.8 kB / 310.6 MB, free: 36.2 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.7657, allocations: 213.4 kB / 310.8 MB, free: 36.2 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01261/0.7783, allocations: 5.84 MB / 316.6 MB, free: 36.09 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.802e-05/0.7784, allocations: 11.45 kB / 316.6 MB, free: 36.08 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005675/0.779, allocations: 97.66 kB / 316.7 MB, free: 36.08 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.701e-05/0.779, allocations: 47.25 kB / 316.8 MB, free: 36.08 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0109/0.79, allocations: 5.55 MB / 322.3 MB, free: 36.05 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02229/0.8123, allocations: 10.38 MB / 332.7 MB, free: 34.5 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009196/0.8215, allocations: 5.63 MB / 338.4 MB, free: 32.85 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003031/0.8219, allocations: 125.5 kB / 338.5 MB, free: 32.75 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/0.8219, allocations: 57.47 kB / 338.5 MB, free: 32.7 MB / 234.7 MB Notification: Performance of pre-optimization done (n=225): time 6.158e-06/0.822, allocations: 0 / 338.5 MB, free: 32.7 MB / 234.7 MB Notification: Performance of matching and sorting (n=353): time 0.09611/0.9181, allocations: 35.31 MB / 373.8 MB, free: 6.082 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3252/1.243, allocations: 36.54 MB / 410.4 MB, free: 49.1 MB / 250.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.01574/1.259, allocations: 7.428 MB / 417.8 MB, free: 48.7 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000923/1.26, allocations: 104.3 kB / 417.9 MB, free: 48.66 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003694/1.264, allocations: 2.823 MB / 420.7 MB, free: 48.51 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001668/1.266, allocations: 1.188 MB / 421.9 MB, free: 48.19 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006481/1.266, allocations: 75.09 kB / 422 MB, free: 48.14 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/1.266, allocations: 440.7 kB / 422.4 MB, free: 47.77 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008881/1.275, allocations: 4.741 MB / 427.2 MB, free: 46.7 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009485/1.285, allocations: 5.032 MB / 432.2 MB, free: 45.41 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008741/1.294, allocations: 4.93 MB / 437.1 MB, free: 44.15 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-05/1.294, allocations: 0 / 437.1 MB, free: 44.15 MB / 250.7 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.02094/1.315, allocations: 11.17 MB / 448.3 MB, free: 39.2 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/1.315, allocations: 10.81 kB / 448.3 MB, free: 39.2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.335e-05/1.315, allocations: 0 / 448.3 MB, free: 39.2 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/1.327, allocations: 1.612 MB / 449.9 MB, free: 37.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004881/1.332, allocations: 0.7454 MB / 450.7 MB, free: 37.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/1.343, allocations: 12.96 MB / 463.6 MB, free: 23.96 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004192/1.347, allocations: 176 kB / 463.8 MB, free: 23.83 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001075/1.348, allocations: 471.7 kB / 464.3 MB, free: 23.43 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.005138/1.353, allocations: 2.19 MB / 466.4 MB, free: 21.57 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/1.355, allocations: 0.8254 MB / 467.3 MB, free: 20.73 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02689/1.382, allocations: 15.54 MB / 482.8 MB, free: 7.621 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005397/1.387, allocations: 2.175 MB / 485 MB, free: 5.656 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.997e-05/1.387, allocations: 8 kB / 485 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.233e-05/1.387, allocations: 18.09 kB / 485 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1782/1.566, allocations: 13.64 MB / 498.7 MB, free: 46.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-05/1.566, allocations: 2.25 kB / 498.7 MB, free: 46.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003734/1.569, allocations: 0.4883 MB / 499.1 MB, free: 46.46 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01337/1.583, allocations: 1.646 MB / 0.4891 GB, free: 46.39 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001018/1.584, allocations: 180 kB / 0.4892 GB, free: 46.39 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01221/1.596, allocations: 12.65 MB / 0.5016 GB, free: 36.41 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1571/1.753, allocations: 32.07 MB / 0.5329 GB, free: 25.99 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07877/1.832, allocations: 23.36 MB / 0.5557 GB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/1.834, allocations: 0.7612 MB / 0.5565 GB, free: 11.85 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001712/1.835, allocations: 83.95 kB / 0.5565 GB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004001/1.839, allocations: 169.1 kB / 0.5567 GB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008033/1.84, allocations: 231 kB / 0.5569 GB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008943/1.841, allocations: 458.3 kB / 0.5574 GB, free: 11.12 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.01236/1.854, allocations: 5.947 MB / 0.5632 GB, free: 6.32 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.246e-06/1.854, allocations: 0 / 0.5632 GB, free: 6.32 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004556/1.858, allocations: 0.9763 MB / 0.5641 GB, free: 5.355 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.001041/1.859, allocations: 292.3 kB / 0.5644 GB, free: 5.145 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.01392/1.873, allocations: 8.17 MB / 0.5724 GB, free: 13.7 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/1.873, allocations: 4.062 kB / 0.5724 GB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009931/1.883, allocations: 4.723 MB / 0.577 GB, free: 9.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004509/1.888, allocations: 0.4956 MB / 0.5775 GB, free: 8.586 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2406/2.128, allocations: 20.17 MB / 0.5972 GB, free: 56.65 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008515/2.137, allocations: 4.107 MB / 0.6012 GB, free: 55.81 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001804/2.139, allocations: 249.2 kB / 0.6014 GB, free: 55.81 MB / 266.7 MB Notification: Performance of SimCode: time 1.676e-06/2.139, allocations: 0 / 0.6014 GB, free: 55.81 MB / 266.7 MB Notification: Performance of Templates: time 2.134/4.273, allocations: 0.5262 GB / 1.128 GB, free: 79.97 MB / 298.7 MB