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 1.019/1.019, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003874/0.0003878, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05374/0.05416, allocations: 25.18 MB / 183.4 MB, free: 6.008 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01349/0.06769, allocations: 8.423 MB / 191.9 MB, free: 13.57 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.007467/0.07521, allocations: 3.15 MB / 195 MB, free: 10.41 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00191/0.07715, allocations: 31.94 kB / 195 MB, free: 10.38 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01001/0.0872, allocations: 7.946 MB / 203 MB, free: 2.418 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1745/0.2617, allocations: 4.581 MB / 207.6 MB, free: 14.49 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002272/0.264, allocations: 0.5024 MB / 208.1 MB, free: 14.49 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.006447/0.2705, allocations: 3.419 MB / 211.5 MB, free: 14.48 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.272, allocations: 0.6769 MB / 212.2 MB, free: 14.26 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004548/0.2766, allocations: 2.461 MB / 214.6 MB, free: 13.56 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005592/0.2822, allocations: 3.74 MB / 218.4 MB, free: 12.59 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006717/0.2829, allocations: 135.2 kB / 218.5 MB, free: 12.59 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009684/0.2839, allocations: 162.4 kB / 218.7 MB, free: 12.59 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001256/0.2852, allocations: 1.709 MB / 220.4 MB, free: 11.43 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001142/0.2863, allocations: 1.063 MB / 221.4 MB, free: 10.78 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005313/0.2917, allocations: 5.304 MB / 226.7 MB, free: 6.199 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.2917, allocations: 0 / 226.7 MB, free: 6.199 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.432e-06/0.2917, allocations: 3.938 kB / 226.7 MB, free: 6.195 MB / 170.7 MB Notification: Performance of Transformations before backend: time 0.0001649/0.2919, allocations: 0 / 226.7 MB, free: 6.195 MB / 170.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.01038/0.3023, allocations: 6.571 MB / 233.3 MB, free: 15.95 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.3024, allocations: 8.031 kB / 233.3 MB, free: 15.95 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001561/0.3039, allocations: 0.8369 MB / 234.1 MB, free: 15.1 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005756/0.3097, allocations: 2.738 MB / 236.9 MB, free: 12.81 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.3099, allocations: 149.5 kB / 237 MB, free: 12.73 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004304/0.3104, allocations: 203.2 kB / 237.2 MB, free: 12.59 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007835/0.3182, allocations: 3.902 MB / 241.1 MB, free: 9.297 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.932e-05/0.3183, allocations: 4 kB / 241.1 MB, free: 9.293 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000251/0.3186, allocations: 80 kB / 241.2 MB, free: 9.215 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.341e-05/0.3187, allocations: 48 kB / 241.3 MB, free: 9.168 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008003/0.3267, allocations: 3.728 MB / 245 MB, free: 5.434 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02201/0.3487, allocations: 8.53 MB / 253.5 MB, free: 12.83 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.016/0.3648, allocations: 4.031 MB / 257.5 MB, free: 8.738 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006026/0.3655, allocations: 123.2 kB / 257.7 MB, free: 8.605 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001301/0.3656, allocations: 67.25 kB / 257.7 MB, free: 8.535 MB / 202.7 MB Notification: Performance of pre-optimization done (n=221): time 1.446e-05/0.3657, allocations: 0 / 257.7 MB, free: 8.535 MB / 202.7 MB Notification: Performance of matching and sorting (n=343): time 0.1233/0.4889, allocations: 27.74 MB / 285.5 MB, free: 12.49 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4037/0.8927, allocations: 36.66 MB / 322.1 MB, free: 59.48 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.02926/0.9221, allocations: 8.502 MB / 330.6 MB, free: 53.6 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004646/0.9226, allocations: 81.7 kB / 330.7 MB, free: 53.51 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002996/0.9256, allocations: 2.839 MB / 333.6 MB, free: 50.95 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001207/0.9268, allocations: 1.128 MB / 334.7 MB, free: 49.94 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003395/0.9272, allocations: 65.41 kB / 334.8 MB, free: 49.88 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.9274, allocations: 429.5 kB / 335.2 MB, free: 49.45 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004832/0.9322, allocations: 3.189 MB / 338.4 MB, free: 46.25 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005268/0.9376, allocations: 3.499 MB / 341.9 MB, free: 42.7 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005222/0.9428, allocations: 3.363 MB / 345.2 MB, free: 39.33 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.711e-05/0.9429, allocations: 0 / 345.2 MB, free: 39.33 MB / 234.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01309/0.956, allocations: 7.814 MB / 353 MB, free: 31.48 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.9561, allocations: 8 kB / 353 MB, free: 31.47 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/0.9561, allocations: 4 kB / 353 MB, free: 31.47 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01201/0.9681, allocations: 1.601 MB / 354.6 MB, free: 29.86 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003674/0.9718, allocations: 0.5571 MB / 355.2 MB, free: 29.3 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/0.9836, allocations: 12.99 MB / 368.2 MB, free: 15.36 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003543/0.9872, allocations: 139.8 kB / 368.3 MB, free: 15.22 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005832/0.9878, allocations: 136 kB / 368.5 MB, free: 15.09 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (292): * Single equations (assignments): 281 * 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.004072/0.9919, allocations: 2.157 MB / 370.6 MB, free: 12.92 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/0.9931, allocations: 0.806 MB / 371.4 MB, free: 12.11 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/1.009, allocations: 10.62 MB / 382 MB, free: 1.445 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00555/1.014, allocations: 2.153 MB / 384.2 MB, free: 15.27 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-05/1.015, allocations: 7.953 kB / 384.2 MB, free: 15.27 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.968e-05/1.015, allocations: 15.94 kB / 384.2 MB, free: 15.25 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02701/1.042, allocations: 10.86 MB / 395.1 MB, free: 4.348 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-05/1.042, allocations: 0 / 395.1 MB, free: 4.348 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003437/1.045, allocations: 475.4 kB / 395.5 MB, free: 3.883 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01287/1.058, allocations: 1.642 MB / 397.2 MB, free: 2.219 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005609/1.059, allocations: 87.91 kB / 397.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1468/1.205, allocations: 12.63 MB / 409.9 MB, free: 72.49 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1576/1.363, allocations: 32.06 MB / 442 MB, free: 54.89 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02095/1.384, allocations: 15.28 MB / 457.2 MB, free: 39.7 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001315/1.385, allocations: 0.7505 MB / 458 MB, free: 38.93 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008908/1.386, allocations: 56.09 kB / 458 MB, free: 38.87 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002851/1.389, allocations: 135.9 kB / 458.2 MB, free: 38.74 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005849/1.39, allocations: 222.9 kB / 458.4 MB, free: 38.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/1.39, allocations: 111.9 kB / 458.5 MB, free: 38.41 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.009766/1.4, allocations: 5.929 MB / 464.4 MB, free: 32.53 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.686e-06/1.4, allocations: 4 kB / 464.4 MB, free: 32.52 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003939/1.404, allocations: 0.9451 MB / 465.4 MB, free: 31.58 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (232): * Single equations (assignments): 222 * 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.0008554/1.405, allocations: 273.2 kB / 465.7 MB, free: 31.34 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.01203/1.417, allocations: 8.053 MB / 473.7 MB, free: 23.2 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.501e-06/1.417, allocations: 0 / 473.7 MB, free: 23.2 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007046/1.424, allocations: 4.636 MB / 478.3 MB, free: 18.49 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003482/1.427, allocations: 491.1 kB / 478.8 MB, free: 18.01 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2094/1.637, allocations: 20.04 MB / 498.9 MB, free: 75.17 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007408/1.644, allocations: 4.098 MB / 0.4912 GB, free: 74.34 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001826/1.646, allocations: 241.8 kB / 0.4914 GB, free: 74.34 MB / 250.7 MB Notification: Performance of SimCode: time 1.833e-06/1.646, allocations: 4.875 kB / 0.4914 GB, free: 74.34 MB / 250.7 MB Notification: Performance of Templates: time 2.412/4.058, allocations: 0.5249 GB / 1.016 GB, free: 75.62 MB / 282.7 MB