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.ComparisonQuasiStationary.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.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 0.9916/0.9916, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.643e-05/2.668e-05, allocations: 3.984 kB / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.14, allocations: 25.15 MB / 179.4 MB, free: 0.7812 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06902/0.209, allocations: 45.44 MB / 224.9 MB, free: 3.633 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.2093, allocations: 75.95 kB / 225 MB, free: 3.559 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3245/0.5338, allocations: 42.97 MB / 267.9 MB, free: 39.43 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.269e-06/0.5338, allocations: 0 / 267.9 MB, free: 39.43 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001229/0.534, allocations: 54.42 kB / 268 MB, free: 39.38 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.005531/0.5395, allocations: 2.251 MB / 270.2 MB, free: 37.08 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.5396, allocations: 8.031 kB / 270.2 MB, free: 37.07 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008092/0.5404, allocations: 289.2 kB / 270.5 MB, free: 36.79 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002781/0.5432, allocations: 1.235 MB / 271.7 MB, free: 35.5 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.5434, allocations: 155.2 kB / 271.9 MB, free: 35.35 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003734/0.5438, allocations: 199.9 kB / 272.1 MB, free: 35.16 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004568/0.5483, allocations: 2.082 MB / 274.2 MB, free: 33.06 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.549e-05/0.5484, allocations: 0 / 274.2 MB, free: 33.06 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002539/0.5487, allocations: 84 kB / 274.3 MB, free: 32.98 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.79e-05/0.5488, allocations: 48 kB / 274.3 MB, free: 32.93 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004568/0.5533, allocations: 1.816 MB / 276.1 MB, free: 31.11 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01561/0.569, allocations: 7.391 MB / 283.5 MB, free: 23.52 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004055/0.5731, allocations: 2.258 MB / 285.8 MB, free: 21.21 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002866/0.576, allocations: 1.358 MB / 287.1 MB, free: 19.86 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002145/0.5762, allocations: 119.1 kB / 287.2 MB, free: 19.73 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.5763, allocations: 60.52 kB / 287.3 MB, free: 19.66 MB / 202.7 MB Notification: Performance of pre-optimization done (n=220): time 6.385e-06/0.5763, allocations: 0 / 287.3 MB, free: 19.66 MB / 202.7 MB Notification: Performance of matching and sorting (n=345): time 0.07144/0.6478, allocations: 17.25 MB / 304.6 MB, free: 2.293 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1296/0.7774, allocations: 33.2 MB / 337.8 MB, free: 456 kB / 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.1379/0.9153, allocations: 1.387 MB / 339.1 MB, free: 63.2 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005958/0.916, allocations: 80.06 kB / 339.2 MB, free: 63.17 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006877/0.9167, allocations: 0.8943 MB / 340.1 MB, free: 63.02 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001215/0.9179, allocations: 1.137 MB / 341.2 MB, free: 62.48 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003335/0.9183, allocations: 67 kB / 341.3 MB, free: 62.48 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.9185, allocations: 433.2 kB / 341.7 MB, free: 62.17 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003473/0.9219, allocations: 1.434 MB / 343.2 MB, free: 62.16 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003902/0.9259, allocations: 1.717 MB / 344.9 MB, free: 61.99 MB / 234.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02679/0.9527, allocations: 4.848 MB / 349.7 MB, free: 61.89 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.9527, allocations: 3.344 kB / 349.7 MB, free: 61.89 MB / 234.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.0103/0.963, allocations: 4.284 MB / 354 MB, free: 61.25 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.9631, allocations: 11.3 kB / 354 MB, free: 61.25 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.9632, allocations: 3.844 kB / 354 MB, free: 61.25 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01165/0.9748, allocations: 1.51 MB / 355.5 MB, free: 60.96 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004243/0.9791, allocations: 0.6104 MB / 356.2 MB, free: 60.95 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009445/0.9886, allocations: 9.881 MB / 366 MB, free: 52.12 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003847/0.9925, allocations: 174.1 kB / 366.2 MB, free: 52.07 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004986/0.993, allocations: 147.6 kB / 366.4 MB, free: 52.04 MB / 234.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: advancedSolenoid.armature.mass.v = $START.advancedSolenoid.armature.mass.v. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (298): * Single equations (assignments): 289 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 7} * Non-linear torn systems: 2 {3 37,3 45} Notification: Performance of prepare postOptimizeDAE: time 0.0007813/0.9938, allocations: 263.2 kB / 366.6 MB, free: 51.84 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006238/0.9944, allocations: 254.4 kB / 366.9 MB, free: 51.72 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/1.005, allocations: 4.614 MB / 371.5 MB, free: 48.18 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008961/1.014, allocations: 4.011 MB / 375.5 MB, free: 44.49 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.752e-05/1.014, allocations: 4 kB / 375.5 MB, free: 44.49 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.911e-05/1.014, allocations: 14.16 kB / 375.5 MB, free: 44.49 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02024/1.035, allocations: 9.905 MB / 385.4 MB, free: 36.27 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/1.035, allocations: 4 kB / 385.4 MB, free: 36.27 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003598/1.038, allocations: 0.513 MB / 385.9 MB, free: 35.87 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01182/1.05, allocations: 1.563 MB / 387.5 MB, free: 34.68 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005585/1.051, allocations: 103.4 kB / 387.6 MB, free: 34.6 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008926/1.06, allocations: 9.881 MB / 397.5 MB, free: 24.34 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1016/1.161, allocations: 28.84 MB / 426.3 MB, free: 12.31 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01715/1.178, allocations: 6.932 MB / 433.2 MB, free: 5.145 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/1.181, allocations: 0.7164 MB / 434 MB, free: 4.406 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006954/1.181, allocations: 70.92 kB / 434 MB, free: 4.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002914/1.184, allocations: 163.9 kB / 434.2 MB, free: 4.18 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006249/1.185, allocations: 241.3 kB / 434.4 MB, free: 3.945 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004243/1.185, allocations: 127.4 kB / 434.6 MB, free: 3.824 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.002312/1.188, allocations: 1.078 MB / 435.6 MB, free: 2.754 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.05e-07/1.188, allocations: 0 / 435.6 MB, free: 2.754 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003678/1.192, allocations: 0.8443 MB / 436.5 MB, free: 1.914 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (240): * Single equations (assignments): 232 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(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.0007769/1.192, allocations: 246.9 kB / 436.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.1455/1.338, allocations: 4.183 MB / 440.9 MB, free: 76.03 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.831e-06/1.338, allocations: 3.75 kB / 440.9 MB, free: 76.03 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006302/1.344, allocations: 2.617 MB / 443.5 MB, free: 75.45 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002635/1.347, allocations: 347.6 kB / 443.9 MB, free: 75.44 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/1.36, allocations: 5.801 MB / 449.7 MB, free: 73.83 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001617/1.362, allocations: 1.743 MB / 451.4 MB, free: 73.08 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/1.364, allocations: 252.1 kB / 451.6 MB, free: 73.08 MB / 250.7 MB Notification: Performance of SimCode: time 2.044e-06/1.364, allocations: 0 / 451.6 MB, free: 73.08 MB / 250.7 MB Notification: Performance of Templates: time 0.262/1.626, allocations: 123.8 MB / 0.562 GB, free: 44.11 MB / 250.7 MB