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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.647/1.647, allocations: 171.2 MB / 186.1 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003549, allocations: 12 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07972/0.08011, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.377/0.4572, allocations: 83.79 MB / 355.9 MB, free: 5.262 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.4575, allocations: 87.33 kB / 356 MB, free: 5.215 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3213/0.7789, allocations: 72.16 MB / 428.1 MB, free: 2.305 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.2e-06/0.7789, allocations: 0 / 428.1 MB, free: 2.305 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001094/0.7801, allocations: 119.9 kB / 428.3 MB, free: 2.188 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.2986/1.079, allocations: 6.921 MB / 435.2 MB, free: 72.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/1.079, allocations: 8.594 kB / 435.2 MB, free: 72.68 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001398/1.08, allocations: 283.2 kB / 435.5 MB, free: 72.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003154/1.083, allocations: 0.8549 MB / 436.3 MB, free: 72.17 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01401/1.097, allocations: 3.559 MB / 439.9 MB, free: 71.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002801/1.098, allocations: 150.3 kB / 440 MB, free: 71.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008594/1.099, allocations: 203.8 kB / 440.2 MB, free: 71.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00775/1.106, allocations: 2.059 MB / 442.3 MB, free: 70.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/1.107, allocations: 5.781 kB / 442.3 MB, free: 70.85 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003074/1.107, allocations: 88.36 kB / 442.4 MB, free: 70.85 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-05/1.107, allocations: 48.16 kB / 442.4 MB, free: 70.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008269/1.115, allocations: 1.927 MB / 444.4 MB, free: 70.83 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03147/1.147, allocations: 9.985 MB / 454.3 MB, free: 69.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006038/1.153, allocations: 2.272 MB / 456.6 MB, free: 68.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000408/1.153, allocations: 128.1 kB / 456.7 MB, free: 68.67 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003705/1.157, allocations: 1.131 MB / 457.9 MB, free: 68.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 6.772e-06/1.157, allocations: 0 / 457.9 MB, free: 68.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=358): time 0.1233/1.28, allocations: 21.78 MB / 479.7 MB, free: 59.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2825/1.563, allocations: 36.59 MB / 0.5041 GB, free: 34.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.187/1.75, allocations: 13.46 MB / 0.5173 GB, free: 22.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008807/1.751, allocations: 85.7 kB / 0.5174 GB, free: 21.92 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.008555/1.76, allocations: 3.686 MB / 0.521 GB, free: 18.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002052/1.762, allocations: 1.192 MB / 0.5221 GB, free: 17.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005303/1.762, allocations: 68 kB / 0.5222 GB, free: 16.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002543/1.763, allocations: 424.9 kB / 0.5226 GB, free: 16.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006275/1.769, allocations: 1.369 MB / 0.5239 GB, free: 15.19 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006433/1.775, allocations: 1.687 MB / 0.5256 GB, free: 13.44 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005281/1.781, allocations: 1.599 MB / 0.5271 GB, free: 11.83 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/1.781, allocations: 0.5625 kB / 0.5272 GB, free: 11.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=423) (initialization): time 0.01653/1.797, allocations: 4.983 MB / 0.532 GB, free: 6.797 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.726e-05/1.797, allocations: 37.64 kB / 0.5321 GB, free: 6.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/1.797, allocations: 4 kB / 0.5321 GB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02457/1.822, allocations: 1.628 MB / 0.5336 GB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00816/1.83, allocations: 0.5772 MB / 0.5342 GB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03274/1.863, allocations: 12.96 MB / 0.5469 GB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01786/1.881, allocations: 196 kB / 0.5471 GB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001269/1.882, allocations: 135.9 kB / 0.5472 GB, free: 6.281 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.01992/1.902, allocations: 2.178 MB / 0.5493 GB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004056/1.906, allocations: 0.8488 MB / 0.5501 GB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2906/2.197, allocations: 5.136 MB / 0.5552 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01106/2.208, allocations: 2.199 MB / 0.5573 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.693e-05/2.208, allocations: 5.406 kB / 0.5573 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000106/2.208, allocations: 17.92 kB / 0.5573 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04114/2.249, allocations: 13.68 MB / 0.5707 GB, free: 80.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.412e-05/2.25, allocations: 3.25 kB / 0.5707 GB, free: 80.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005341/2.255, allocations: 0.4923 MB / 0.5712 GB, free: 80.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01916/2.274, allocations: 1.655 MB / 0.5728 GB, free: 80.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007861/2.275, allocations: 92.77 kB / 0.5729 GB, free: 80.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/2.288, allocations: 12.64 MB / 0.5852 GB, free: 70.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2653/2.553, allocations: 32.51 MB / 0.617 GB, free: 57.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02159/2.575, allocations: 7.538 MB / 0.6243 GB, free: 53.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005515/2.581, allocations: 1.586 MB / 0.6259 GB, free: 52.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002618/2.583, allocations: 80 kB / 0.626 GB, free: 52.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00605/2.589, allocations: 173.1 kB / 0.6261 GB, free: 52.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009489/2.59, allocations: 235.3 kB / 0.6263 GB, free: 52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003702/2.591, allocations: 117.5 kB / 0.6265 GB, free: 51.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.02102/2.612, allocations: 10.86 MB / 0.6371 GB, free: 42.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.22e-07/2.612, allocations: 3.281 kB / 0.6371 GB, free: 42.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006549/2.618, allocations: 1.547 MB / 0.6386 GB, free: 41.05 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.02111/2.64, allocations: 8.719 MB / 0.6471 GB, free: 32.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01099/2.651, allocations: 4.494 MB / 0.6515 GB, free: 28.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/2.651, allocations: 2.5 kB / 0.6515 GB, free: 28.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006938/2.658, allocations: 2.876 MB / 0.6543 GB, free: 25.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005854/2.663, allocations: 490.5 kB / 0.6548 GB, free: 25.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3234/2.987, allocations: 52.88 MB / 0.7064 GB, free: 75.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01041/2.997, allocations: 4.125 MB / 0.7104 GB, free: 75.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00498/3.002, allocations: 0.8423 MB / 0.7113 GB, free: 74.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008281/3.011, allocations: 3.292 MB / 0.7145 GB, free: 74.93 MB / 378.7 MB Notification: Performance of SimCode: time 1.363e-06/3.011, allocations: 0 / 0.7145 GB, free: 74.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.905/3.916, allocations: 148.2 MB / 0.8592 GB, free: 95.48 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000283/3.916, allocations: 289.8 kB / 0.8595 GB, free: 95.12 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/14.57, allocations: 0 / 0.8595 GB, free: 95.12 MB / 394.7 MB