Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadModel(Modelica): time 1.838/1.838, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005463/0.0005466, allocations: 11.98 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1153, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3854/0.5009, allocations: 83.78 MB / 356.4 MB, free: 5.719 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003566/0.5013, allocations: 92.45 kB / 356.5 MB, free: 5.668 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.319/0.8203, allocations: 72.15 MB / 428.6 MB, free: 2.496 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.8203, allocations: 0 / 428.6 MB, free: 2.496 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001226/0.8216, allocations: 123.9 kB / 428.8 MB, free: 2.375 MB / 346.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.267/1.089, allocations: 6.914 MB / 435.7 MB, free: 72.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/1.089, allocations: 9.359 kB / 435.7 MB, free: 72.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003551/1.092, allocations: 0.857 MB / 436.5 MB, free: 72.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01515/1.107, allocations: 3.561 MB / 440.1 MB, free: 71.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002355/1.108, allocations: 151.6 kB / 440.3 MB, free: 71.22 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007446/1.108, allocations: 202.5 kB / 440.5 MB, free: 71.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008003/1.116, allocations: 2.059 MB / 442.5 MB, free: 71.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/1.117, allocations: 10.95 kB / 442.5 MB, free: 71.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003325/1.117, allocations: 83.59 kB / 442.6 MB, free: 71.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.967e-05/1.117, allocations: 48.25 kB / 442.7 MB, free: 71.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007971/1.125, allocations: 1.927 MB / 444.6 MB, free: 71.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03099/1.156, allocations: 9.989 MB / 454.6 MB, free: 69.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00643/1.163, allocations: 2.265 MB / 456.8 MB, free: 68.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004247/1.163, allocations: 121 kB / 456.9 MB, free: 68.87 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004162/1.167, allocations: 1.131 MB / 458.1 MB, free: 68.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 7.354e-06/1.167, allocations: 0 / 458.1 MB, free: 68.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=358): time 0.1298/1.297, allocations: 21.78 MB / 479.9 MB, free: 59.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.311/1.608, allocations: 36.6 MB / 0.5044 GB, free: 34.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2319/1.84, allocations: 14.56 MB / 0.5186 GB, free: 21.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007859/1.841, allocations: 85.53 kB / 0.5187 GB, free: 21.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006202/1.847, allocations: 3.688 MB / 0.5223 GB, free: 17.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001647/1.849, allocations: 1.179 MB / 0.5234 GB, free: 16.37 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003953/1.849, allocations: 68 kB / 0.5235 GB, free: 16.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001916/1.85, allocations: 432.9 kB / 0.5239 GB, free: 15.87 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004393/1.854, allocations: 1.371 MB / 0.5252 GB, free: 14.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00489/1.859, allocations: 1.695 MB / 0.5269 GB, free: 12.74 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005002/1.864, allocations: 1.587 MB / 0.5284 GB, free: 11.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.468e-05/1.864, allocations: 0 / 0.5284 GB, free: 11.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=423) (initialization): time 0.01578/1.88, allocations: 4.98 MB / 0.5333 GB, free: 6.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.669e-05/1.88, allocations: 44.56 kB / 0.5333 GB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.839e-05/1.88, allocations: 4 kB / 0.5333 GB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01938/1.899, allocations: 1.625 MB / 0.5349 GB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00604/1.905, allocations: 0.5772 MB / 0.5355 GB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01627/1.922, allocations: 12.96 MB / 0.5481 GB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0113/1.933, allocations: 191.9 kB / 0.5483 GB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001111/1.934, allocations: 135.9 kB / 0.5485 GB, free: 5.59 MB / 362.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (304): * Single equations (assignments): 292 * 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%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 38,3 48} Notification: Performance of prepare postOptimizeDAE: time 0.00707/1.941, allocations: 2.193 MB / 0.5506 GB, free: 3.395 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003891/1.945, allocations: 0.8449 MB / 0.5514 GB, free: 2.539 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2845/2.23, allocations: 5.133 MB / 0.5564 GB, free: 82.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008073/2.238, allocations: 2.196 MB / 0.5586 GB, free: 82.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-05/2.238, allocations: 6.469 kB / 0.5586 GB, free: 82.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001339/2.238, allocations: 19.45 kB / 0.5586 GB, free: 82.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0663/2.305, allocations: 13.68 MB / 0.572 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.016e-05/2.305, allocations: 3.156 kB / 0.572 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005547/2.31, allocations: 0.4982 MB / 0.5725 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02272/2.333, allocations: 1.649 MB / 0.5741 GB, free: 81.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009939/2.334, allocations: 95 kB / 0.5742 GB, free: 81.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01544/2.349, allocations: 12.64 MB / 0.5865 GB, free: 71.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2756/2.625, allocations: 32.5 MB / 0.6182 GB, free: 56.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02291/2.648, allocations: 7.001 MB / 0.6251 GB, free: 53.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005548/2.654, allocations: 1.595 MB / 0.6266 GB, free: 52.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003001/2.657, allocations: 84 kB / 0.6267 GB, free: 52.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006491/2.663, allocations: 170.9 kB / 0.6269 GB, free: 52.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001058/2.664, allocations: 237.3 kB / 0.6271 GB, free: 52.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004047/2.665, allocations: 109.8 kB / 0.6272 GB, free: 52.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.02519/2.69, allocations: 10.87 MB / 0.6378 GB, free: 42.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.69, allocations: 1.406 kB / 0.6378 GB, free: 42.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007244/2.697, allocations: 1.54 MB / 0.6393 GB, free: 41.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 240 * 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%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 49,4 37} Notification: Performance of Backend phase and start with SimCode phase: time 0.001838/2.699, allocations: 447.3 kB / 0.6398 GB, free: 40.97 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01806/2.717, allocations: 4.501 MB / 0.6442 GB, free: 36.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/2.717, allocations: 0 / 0.6442 GB, free: 36.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01162/2.729, allocations: 2.868 MB / 0.647 GB, free: 34.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008027/2.737, allocations: 482.5 kB / 0.6474 GB, free: 33.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06987/2.807, allocations: 21.7 MB / 0.6686 GB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01263/2.82, allocations: 4.12 MB / 0.6726 GB, free: 9.008 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.006946/2.827, allocations: 0.8456 MB / 0.6735 GB, free: 8.203 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00424/2.831, allocations: 382.4 kB / 0.6738 GB, free: 7.832 MB / 362.7 MB Notification: Performance of SimCode: time 2.174e-06/2.831, allocations: 0 / 0.6738 GB, free: 7.832 MB / 362.7 MB Notification: Performance of Templates: time 0.8633/3.694, allocations: 76.55 MB / 0.7486 GB, free: 75.43 MB / 378.7 MB