Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadModel(Modelica): time 1.641/1.641, allocations: 171.2 MB / 184.2 MB, free: 12.05 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.574e-05/2.587e-05, allocations: 0 / 228.8 MB, free: 15.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2067, allocations: 38.76 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1252/0.3319, allocations: 83.7 MB / 351.3 MB, free: 5.609 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.3322, allocations: 83.95 kB / 351.4 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4589/0.7911, allocations: 72.15 MB / 423.5 MB, free: 22.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.443e-06/0.7911, allocations: 0 / 423.5 MB, free: 22.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000828/0.792, allocations: 112 kB / 423.6 MB, free: 22.56 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01191/0.8039, allocations: 5.53 MB / 429.2 MB, free: 16.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.804, allocations: 8.031 kB / 429.2 MB, free: 16.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001867/0.8059, allocations: 0.8563 MB / 430 MB, free: 16.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00915/0.815, allocations: 3.526 MB / 433.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.8153, allocations: 152 kB / 433.7 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005563/0.8158, allocations: 199.9 kB / 433.9 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005176/0.821, allocations: 1.954 MB / 435.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.801e-05/0.8211, allocations: 0 / 435.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002552/0.8214, allocations: 80 kB / 435.9 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.826e-05/0.8215, allocations: 55.95 kB / 436 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004647/0.8261, allocations: 1.727 MB / 437.7 MB, free: 8.238 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03799/0.8642, allocations: 9.981 MB / 447.7 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008782/0.873, allocations: 2.174 MB / 449.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005884/0.879, allocations: 1.268 MB / 451.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000514/0.8795, allocations: 119.2 kB / 451.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00486/0.8844, allocations: 1.046 MB / 452.3 MB, free: 9.285 MB / 314.7 MB Notification: Performance of pre-optimization done (n=230): time 1.266e-05/0.8845, allocations: 0 / 452.3 MB, free: 9.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=355): time 0.1245/1.009, allocations: 18.96 MB / 471.3 MB, free: 6.066 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3344/1.344, allocations: 33.07 MB / 0.4925 GB, free: 76.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1972/1.541, allocations: 13.34 MB / 0.5055 GB, free: 74.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006147/1.541, allocations: 82.92 kB / 0.5056 GB, free: 74.74 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004072/1.545, allocations: 2.839 MB / 0.5084 GB, free: 72.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001504/1.547, allocations: 1.182 MB / 0.5095 GB, free: 71.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005194/1.548, allocations: 66.78 kB / 0.5096 GB, free: 71.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002251/1.548, allocations: 432 kB / 0.51 GB, free: 71.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003685/1.552, allocations: 1.332 MB / 0.5113 GB, free: 70.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004157/1.556, allocations: 1.668 MB / 0.5129 GB, free: 70.04 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004227/1.56, allocations: 1.551 MB / 0.5145 GB, free: 69.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.07e-05/1.56, allocations: 0 / 0.5145 GB, free: 69.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=420) (initialization): time 0.0119/1.572, allocations: 4.212 MB / 0.5186 GB, free: 67.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.775e-05/1.572, allocations: 32.42 kB / 0.5186 GB, free: 67.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/1.572, allocations: 6.625 kB / 0.5186 GB, free: 67.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01347/1.586, allocations: 1.601 MB / 0.5202 GB, free: 67.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004784/1.59, allocations: 0.5886 MB / 0.5208 GB, free: 67.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/1.602, allocations: 12.89 MB / 0.5333 GB, free: 55.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00509/1.608, allocations: 196.9 kB / 0.5335 GB, free: 55.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007705/1.608, allocations: 137.4 kB / 0.5337 GB, free: 55.38 MB / 346.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: 7 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,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 (302): * Single equations (assignments): 290 * Array equations: 2 * Algorithm blocks: 1 * 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 {2 38,3 45} Notification: Performance of prepare postOptimizeDAE: time 0.0007691/1.609, allocations: 273 kB / 0.5339 GB, free: 55.17 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001798/1.611, allocations: 0.8425 MB / 0.5347 GB, free: 54.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01282/1.624, allocations: 5.043 MB / 0.5397 GB, free: 50 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005006/1.629, allocations: 2.151 MB / 0.5418 GB, free: 48.03 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-05/1.629, allocations: 8 kB / 0.5418 GB, free: 48.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-05/1.629, allocations: 14.48 kB / 0.5418 GB, free: 48.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03146/1.661, allocations: 13.86 MB / 0.5553 GB, free: 36.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.206e-05/1.661, allocations: 4 kB / 0.5553 GB, free: 36.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003784/1.664, allocations: 0.5023 MB / 0.5558 GB, free: 36.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01376/1.678, allocations: 1.623 MB / 0.5574 GB, free: 35.31 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006269/1.679, allocations: 102.1 kB / 0.5575 GB, free: 35.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/1.69, allocations: 12.56 MB / 0.5698 GB, free: 22.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09779/1.788, allocations: 28.87 MB / 0.598 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01893/1.807, allocations: 7.466 MB / 0.6053 GB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004259/1.811, allocations: 1.584 MB / 0.6068 GB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001851/1.813, allocations: 84 kB / 0.6069 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004299/1.817, allocations: 168.5 kB / 0.607 GB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008753/1.818, allocations: 244.9 kB / 0.6073 GB, free: 3.441 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004265/1.818, allocations: 121.4 kB / 0.6074 GB, free: 3.352 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.02506/1.844, allocations: 10.75 MB / 0.6179 GB, free: 8.688 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.255e-06/1.844, allocations: 3.609 kB / 0.6179 GB, free: 8.688 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006655/1.85, allocations: 1.557 MB / 0.6194 GB, free: 7.141 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 6 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent) * Number of discrete states: 1 (comparisonWithFEA.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 239 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 47,3 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.001798/1.852, allocations: 431.5 kB / 0.6198 GB, free: 6.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01149/1.864, allocations: 4.429 MB / 0.6242 GB, free: 2.312 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.323e-06/1.864, allocations: 0 / 0.6242 GB, free: 2.312 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2517/2.115, allocations: 2.824 MB / 0.6269 GB, free: 107.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004014/2.119, allocations: 484.8 kB / 0.6274 GB, free: 107.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03523/2.155, allocations: 17.79 MB / 0.6447 GB, free: 104.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007059/2.162, allocations: 4.118 MB / 0.6488 GB, free: 103.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002816/2.165, allocations: 433.3 kB / 0.6492 GB, free: 103.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-06/2.165, allocations: 0 / 0.6492 GB, free: 103.3 MB / 378.7 MB Notification: Performance of Templates: time 2.281/4.446, allocations: 0.5402 GB / 1.189 GB, free: 137.5 MB / 410.7 MB