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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.9631/0.9631, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.932e-05/1.948e-05, allocations: 4 kB / 148.1 MB, free: 6.219 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04519/0.04524, allocations: 25.17 MB / 173.3 MB, free: 13 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1854/0.2306, allocations: 44.79 MB / 218.1 MB, free: 5.613 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001791/0.2309, allocations: 62.97 kB / 218.1 MB, free: 5.605 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1692/0.4, allocations: 42.56 MB / 260.7 MB, free: 5.719 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.731e-06/0.4001, allocations: 0 / 260.7 MB, free: 5.719 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001902/0.4003, allocations: 52 kB / 260.8 MB, free: 5.668 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.007453/0.4078, allocations: 2.248 MB / 263 MB, free: 3.367 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.4079, allocations: 8.031 kB / 263 MB, free: 3.359 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.409, allocations: 289.2 kB / 263.3 MB, free: 3.074 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003721/0.4128, allocations: 1.242 MB / 264.5 MB, free: 1.781 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.413, allocations: 68 kB / 264.6 MB, free: 1.715 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006326/0.4136, allocations: 116 kB / 264.7 MB, free: 1.602 MB / 202.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005741/0.4194, allocations: 1.711 MB / 266.4 MB, free: 15.89 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006003/0.4254, allocations: 1.797 MB / 268.2 MB, free: 14.08 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-05/0.4255, allocations: 4 kB / 268.2 MB, free: 14.07 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.4258, allocations: 0 / 268.2 MB, free: 14.07 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.543e-05/0.4259, allocations: 48 kB / 268.3 MB, free: 14.03 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02664/0.4525, allocations: 7.064 MB / 275.3 MB, free: 6.773 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008753/0.4613, allocations: 2.155 MB / 277.5 MB, free: 4.574 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006006/0.4674, allocations: 1.293 MB / 278.8 MB, free: 3.285 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004456/0.4679, allocations: 123.1 kB / 278.9 MB, free: 3.148 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.129e-05/0.468, allocations: 56.56 kB / 279 MB, free: 3.082 MB / 218.7 MB Notification: Performance of pre-optimization done (n=220): time 2.072e-05/0.468, allocations: 4 kB / 279 MB, free: 3.078 MB / 218.7 MB Notification: Performance of matching and sorting (n=345): time 0.07323/0.5413, allocations: 14.03 MB / 293 MB, free: 4.918 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.217e-05/0.5414, allocations: 86.11 kB / 293.1 MB, free: 4.82 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.002718/0.5442, allocations: 1.264 MB / 294.3 MB, free: 3.555 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003434/0.5445, allocations: 25.7 kB / 294.4 MB, free: 3.523 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008577/0.5454, allocations: 0.8944 MB / 295.3 MB, free: 2.621 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001339/0.5467, allocations: 1.081 MB / 296.3 MB, free: 1.523 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002695/0.547, allocations: 4 kB / 296.3 MB, free: 1.52 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0003238/0.5474, allocations: 441.3 kB / 296.8 MB, free: 1.078 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1301/0.6775, allocations: 1.366 MB / 298.1 MB, free: 53.14 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004774/0.6823, allocations: 1.643 MB / 299.8 MB, free: 52.98 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.0201/0.7025, allocations: 4.326 MB / 304.1 MB, free: 52.89 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/0.7025, allocations: 1.25 kB / 304.1 MB, free: 52.89 MB / 234.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.01055/0.7131, allocations: 4.106 MB / 308.2 MB, free: 52.7 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.7132, allocations: 7.781 kB / 308.2 MB, free: 52.7 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.7132, allocations: 6.625 kB / 308.2 MB, free: 52.7 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004097/0.7173, allocations: 0.9507 MB / 309.2 MB, free: 52.63 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004601/0.7219, allocations: 0.6134 MB / 309.8 MB, free: 52.63 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009688/0.7317, allocations: 9.798 MB / 319.6 MB, free: 45.42 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00383/0.7355, allocations: 107.4 kB / 319.7 MB, free: 45.42 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005985/0.7362, allocations: 153.3 kB / 319.9 MB, free: 45.42 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. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: advancedSolenoid.g_mAirWork.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real advancedSolenoid.g_mFeYokeSide2.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real advancedSolenoid.coil1.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux coupled into magnetic circuit" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mLeakWork.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real simpleSolenoid.g_mFeYokeBot.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real 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.0007568/0.7369, allocations: 158.5 kB / 320 MB, free: 45.32 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006333/0.7376, allocations: 250 kB / 320.3 MB, free: 45.32 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/0.7487, allocations: 4.399 MB / 324.7 MB, free: 44.71 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009372/0.7581, allocations: 3.856 MB / 328.5 MB, free: 43.24 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.672e-05/0.7581, allocations: 3.625 kB / 328.5 MB, free: 43.24 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.536e-05/0.7582, allocations: 22.06 kB / 328.5 MB, free: 43.24 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03457/0.7928, allocations: 9.415 MB / 337.9 MB, free: 38.96 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.368e-05/0.7929, allocations: 3.844 kB / 338 MB, free: 38.96 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006879/0.7998, allocations: 0.5189 MB / 338.5 MB, free: 38.95 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007578/0.8074, allocations: 1.009 MB / 339.5 MB, free: 38.65 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009236/0.8084, allocations: 49.3 kB / 339.5 MB, free: 38.64 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01815/0.8266, allocations: 9.798 MB / 349.3 MB, free: 30.11 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1636/0.9902, allocations: 27.75 MB / 377.1 MB, free: 6.914 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02706/1.017, allocations: 6.739 MB / 383.8 MB, free: 448 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005089/1.023, allocations: 0.7633 MB / 384.6 MB, free: 0 / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001439/1.024, allocations: 17.77 kB / 384.6 MB, free: 0 / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1667/1.191, allocations: 148.2 kB / 384.7 MB, free: 47.34 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001258/1.192, allocations: 236.2 kB / 385 MB, free: 47.33 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007286/1.193, allocations: 133.7 kB / 385.1 MB, free: 47.33 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.003422/1.196, allocations: 0.967 MB / 386.1 MB, free: 47.22 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.035e-06/1.196, allocations: 0 / 386.1 MB, free: 47.22 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.006462/1.203, allocations: 0.7107 MB / 386.8 MB, free: 47.22 MB / 234.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.001169/1.204, allocations: 196.7 kB / 387 MB, free: 47.13 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.008888/1.213, allocations: 3.974 MB / 390.9 MB, free: 46.54 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/1.213, allocations: 1.062 kB / 390.9 MB, free: 46.54 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005689/1.219, allocations: 2.521 MB / 393.5 MB, free: 46 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002495/1.221, allocations: 267.2 kB / 393.7 MB, free: 45.99 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/1.234, allocations: 5.525 MB / 399.3 MB, free: 44.42 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001713/1.236, allocations: 1.748 MB / 401 MB, free: 43.66 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001908/1.238, allocations: 250.2 kB / 401.2 MB, free: 43.66 MB / 234.7 MB Notification: Performance of SimCode: time 1.882e-06/1.238, allocations: 0 / 401.2 MB, free: 43.66 MB / 234.7 MB Notification: Performance of Templates: time 0.2799/1.518, allocations: 123.3 MB / 0.5123 GB, free: 40.13 MB / 250.7 MB