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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.9784/0.9784, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.607e-05/1.612e-05, allocations: 0 / 148.1 MB, free: 6.227 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04594/0.04598, allocations: 25.18 MB / 173.3 MB, free: 13 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1866/0.2326, allocations: 44.36 MB / 217.7 MB, free: 5.781 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.2328, allocations: 71.03 kB / 217.7 MB, free: 5.773 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2559/0.4887, allocations: 69.75 MB / 287.5 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.847e-06/0.4888, allocations: 0 / 287.5 MB, free: 10.07 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0007722/0.4896, allocations: 116 kB / 287.6 MB, free: 9.957 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.01416/0.5037, allocations: 5.584 MB / 293.2 MB, free: 4.305 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.5038, allocations: 16.03 kB / 293.2 MB, free: 4.289 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002202/0.506, allocations: 0.8535 MB / 294 MB, free: 3.426 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2691/0.7751, allocations: 3.48 MB / 297.5 MB, free: 40.48 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.7754, allocations: 66.78 kB / 297.6 MB, free: 40.48 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001027/0.7764, allocations: 136.4 kB / 297.7 MB, free: 40.48 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01161/0.788, allocations: 5.224 MB / 302.9 MB, free: 40.47 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01145/0.7995, allocations: 5.431 MB / 308.4 MB, free: 40.36 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.711e-05/0.7996, allocations: 3.594 kB / 308.4 MB, free: 40.36 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004845/0.8001, allocations: 23.5 kB / 308.4 MB, free: 40.36 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.514e-05/0.8002, allocations: 48.28 kB / 308.5 MB, free: 40.36 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02265/0.8229, allocations: 10.01 MB / 318.5 MB, free: 39.13 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008368/0.8313, allocations: 5.411 MB / 323.9 MB, free: 38.84 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007191/0.8385, allocations: 4.566 MB / 328.4 MB, free: 38.13 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003136/0.8389, allocations: 130.3 kB / 328.6 MB, free: 38.02 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.8389, allocations: 60.12 kB / 328.6 MB, free: 37.96 MB / 234.7 MB Notification: Performance of pre-optimization done (n=225): time 6.561e-06/0.8389, allocations: 0 / 328.6 MB, free: 37.96 MB / 234.7 MB Notification: Performance of matching and sorting (n=350): time 0.07407/0.913, allocations: 27.27 MB / 355.9 MB, free: 20.96 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.9131, allocations: 145.5 kB / 356 MB, free: 20.8 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.01256/0.9257, allocations: 6.881 MB / 362.9 MB, free: 14.85 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008534/0.9266, allocations: 45.7 kB / 363 MB, free: 14.8 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003518/0.9301, allocations: 2.862 MB / 365.8 MB, free: 12.07 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001607/0.9318, allocations: 1.128 MB / 366.9 MB, free: 11.18 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006179/0.9324, allocations: 16 kB / 367 MB, free: 11.16 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.9326, allocations: 437.2 kB / 367.4 MB, free: 10.77 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007588/0.9402, allocations: 4.629 MB / 372 MB, free: 6.754 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008167/0.9484, allocations: 4.906 MB / 376.9 MB, free: 2.457 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01531/0.9637, allocations: 5.256 MB / 382.2 MB, free: 15.18 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.347e-05/0.9638, allocations: 4 kB / 382.2 MB, free: 15.17 MB / 250.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.02978/0.9936, allocations: 10.86 MB / 393 MB, free: 5.496 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.654e-05/0.9937, allocations: 10.34 kB / 393.1 MB, free: 5.488 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.398e-05/0.9937, allocations: 4 kB / 393.1 MB, free: 5.484 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005655/0.9994, allocations: 1.017 MB / 394.1 MB, free: 4.457 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005414/1.005, allocations: 0.7565 MB / 394.8 MB, free: 3.727 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1529/1.158, allocations: 12.7 MB / 407.5 MB, free: 45.43 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004927/1.163, allocations: 113 kB / 407.6 MB, free: 45.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001387/1.164, allocations: 480.4 kB / 408.1 MB, free: 45.4 MB / 250.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: advancedSolenoid.g_mAirWork.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real advancedSolenoid.g_mFeYokeSide2.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real advancedSolenoid.coil1.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux coupled into magnetic circuit" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirWork.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real simpleSolenoid.g_mFeYokeBot.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (297): * Single equations (assignments): 286 * 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%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 37,3 45} Notification: Performance of prepare postOptimizeDAE: time 0.001289/1.165, allocations: 177.3 kB / 408.3 MB, free: 45.29 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001552/1.167, allocations: 0.8214 MB / 409.1 MB, free: 45.29 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02863/1.196, allocations: 15.25 MB / 424.4 MB, free: 44.98 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005519/1.201, allocations: 2.067 MB / 426.4 MB, free: 44.84 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.959e-05/1.201, allocations: 3.688 kB / 426.4 MB, free: 44.84 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.327e-05/1.201, allocations: 18.66 kB / 426.4 MB, free: 44.84 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0328/1.234, allocations: 13.22 MB / 439.7 MB, free: 42.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-05/1.234, allocations: 6.781 kB / 439.7 MB, free: 42.03 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00408/1.238, allocations: 0.4964 MB / 440.2 MB, free: 42.01 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004515/1.243, allocations: 1.068 MB / 441.2 MB, free: 41.69 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009928/1.244, allocations: 135.2 kB / 441.4 MB, free: 41.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01241/1.256, allocations: 12.38 MB / 453.8 MB, free: 30.68 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0894/1.346, allocations: 27.69 MB / 481.4 MB, free: 9.258 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.199/1.545, allocations: 23.86 MB / 0.4935 GB, free: 46.49 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/1.546, allocations: 0.7463 MB / 0.4942 GB, free: 46.4 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001573/1.548, allocations: 27.83 kB / 0.4942 GB, free: 46.4 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003967/1.552, allocations: 110.1 kB / 0.4943 GB, free: 46.4 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007937/1.553, allocations: 239.1 kB / 0.4946 GB, free: 46.4 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008875/1.554, allocations: 460.7 kB / 0.495 GB, free: 46.38 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.01114/1.565, allocations: 5.407 MB / 0.5003 GB, free: 46.12 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.131e-06/1.565, allocations: 1.781 kB / 0.5003 GB, free: 46.12 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004654/1.57, allocations: 0.8587 MB / 0.5011 GB, free: 46.12 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 234 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 38,4 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009965/1.571, allocations: 236.9 kB / 0.5013 GB, free: 46.02 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.01165/1.582, allocations: 7.869 MB / 0.509 GB, free: 45.26 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/1.582, allocations: 0 / 0.509 GB, free: 45.26 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007239/1.59, allocations: 4.561 MB / 0.5135 GB, free: 44.52 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003888/1.594, allocations: 426.5 kB / 0.5139 GB, free: 44.48 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03048/1.624, allocations: 15.63 MB / 0.5291 GB, free: 37.62 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006961/1.631, allocations: 4.115 MB / 0.5332 GB, free: 34.68 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001878/1.633, allocations: 252.3 kB / 0.5334 GB, free: 34.52 MB / 250.7 MB Notification: Performance of SimCode: time 2.459e-06/1.633, allocations: 0 / 0.5334 GB, free: 34.52 MB / 250.7 MB Notification: Performance of Templates: time 2.41/4.043, allocations: 0.5276 GB / 1.061 GB, free: 74.88 MB / 282.7 MB