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.ComparisonQuasiStationary.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedFeed_x.v|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleFeed_x.v|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 1.608/1.608, allocations: 171.3 MB / 179.2 MB, free: 7.59 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.822e-05/1.828e-05, allocations: 0 / 222.5 MB, free: 8.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06897/0.06901, allocations: 38.76 MB / 261.3 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.297/0.366, allocations: 82.23 MB / 343.5 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/0.3663, allocations: 79.39 kB / 343.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1714/0.5378, allocations: 43.72 MB / 387.3 MB, free: 13.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.5378, allocations: 0 / 387.3 MB, free: 13.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002141/0.5381, allocations: 48 kB / 387.4 MB, free: 13.62 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 513 * Number of variables: 513 Notification: Performance of Generate backend data structure: time 0.007018/0.5451, allocations: 2.308 MB / 389.7 MB, free: 11.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.5452, allocations: 8.031 kB / 389.7 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001045/0.5462, allocations: 296.5 kB / 390 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003609/0.5499, allocations: 1.259 MB / 391.2 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.55, allocations: 72 kB / 391.3 MB, free: 9.562 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000389/0.5504, allocations: 116 kB / 391.4 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005033/0.5555, allocations: 1.605 MB / 393 MB, free: 7.836 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004843/0.5603, allocations: 1.447 MB / 394.5 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.789e-05/0.5605, allocations: 3.906 kB / 394.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002077/0.5607, allocations: 0 / 394.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.913e-05/0.5608, allocations: 51.95 kB / 394.5 MB, free: 6.285 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01913/0.5799, allocations: 7.128 MB / 401.6 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004614/0.5846, allocations: 2.047 MB / 403.7 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003004/0.5876, allocations: 1.18 MB / 404.9 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002741/0.5879, allocations: 115.1 kB / 405 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.582e-05/0.588, allocations: 68.45 kB / 405 MB, free: 11.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 6.801e-06/0.588, allocations: 0 / 405 MB, free: 11.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=347): time 0.2495/0.8375, allocations: 12.99 MB / 418 MB, free: 89.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.8376, allocations: 89.97 kB / 418.1 MB, free: 89.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/0.8409, allocations: 1.484 MB / 419.6 MB, free: 89.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005042/0.8414, allocations: 26.73 kB / 419.6 MB, free: 89.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000641/0.8421, allocations: 0.8917 MB / 420.5 MB, free: 89.47 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001136/0.8432, allocations: 1.099 MB / 421.6 MB, free: 88.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002747/0.8435, allocations: 0 / 421.6 MB, free: 88.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.8437, allocations: 439.1 kB / 422 MB, free: 88.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003032/0.8468, allocations: 1.248 MB / 423.3 MB, free: 88.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003424/0.8502, allocations: 1.505 MB / 424.8 MB, free: 88.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004267/0.8545, allocations: 1.512 MB / 426.3 MB, free: 88.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-05/0.8545, allocations: 0 / 426.3 MB, free: 88.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.0105/0.8651, allocations: 3.832 MB / 430.1 MB, free: 88.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.153e-05/0.8652, allocations: 36.7 kB / 430.2 MB, free: 88.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/0.8652, allocations: 4.719 kB / 430.2 MB, free: 88.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004095/0.8693, allocations: 0.9403 MB / 431.1 MB, free: 88.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004299/0.8736, allocations: 0.6003 MB / 431.7 MB, free: 88.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.8839, allocations: 9.788 MB / 441.5 MB, free: 80.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003632/0.8876, allocations: 104.3 kB / 441.6 MB, free: 80.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000544/0.8882, allocations: 136.5 kB / 441.7 MB, free: 80.5 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (301): * Single equations (assignments): 291 * 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: 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%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 45,3 37} Notification: Performance of prepare postOptimizeDAE: time 0.0007698/0.8889, allocations: 142.8 kB / 441.9 MB, free: 80.39 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006235/0.8896, allocations: 244.2 kB / 442.1 MB, free: 80.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009813/0.8994, allocations: 3.957 MB / 446.1 MB, free: 78.58 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008582/0.908, allocations: 3.445 MB / 449.5 MB, free: 77.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.9081, allocations: 6.594 kB / 449.5 MB, free: 77.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.275e-05/0.9081, allocations: 18.47 kB / 449.6 MB, free: 77.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02079/0.9289, allocations: 9.025 MB / 458.6 MB, free: 72.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.05e-05/0.929, allocations: 3.719 kB / 458.6 MB, free: 72.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004126/0.9331, allocations: 0.5126 MB / 459.1 MB, free: 72.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004423/0.9376, allocations: 1.011 MB / 460.1 MB, free: 72.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005631/0.9382, allocations: 53.44 kB / 460.2 MB, free: 72.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01002/0.9482, allocations: 9.803 MB / 470 MB, free: 64.08 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.08985/1.038, allocations: 27.72 MB / 497.7 MB, free: 45.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/1.051, allocations: 6.097 MB / 0.492 GB, free: 39.13 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00189/1.053, allocations: 0.73 MB / 0.4927 GB, free: 38.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005776/1.053, allocations: 10.53 kB / 0.4927 GB, free: 38.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00274/1.056, allocations: 101.1 kB / 0.4928 GB, free: 38.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005179/1.057, allocations: 234.5 kB / 0.493 GB, free: 38.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000326/1.057, allocations: 119.8 kB / 0.4931 GB, free: 38.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002001/1.059, allocations: 1.127 MB / 0.4942 GB, free: 37.17 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.02e-07/1.059, allocations: 0 / 0.4942 GB, free: 37.17 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003415/1.062, allocations: 0.7397 MB / 0.4949 GB, free: 36.44 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 235 * Array equations: 0 * 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%) 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.0008828/1.063, allocations: 250.1 kB / 0.4952 GB, free: 36.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007915/1.071, allocations: 3.894 MB / 0.499 GB, free: 32.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.929e-06/1.071, allocations: 7.281 kB / 0.499 GB, free: 32.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005129/1.076, allocations: 2.449 MB / 0.5014 GB, free: 30.11 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/1.079, allocations: 233.3 kB / 0.5016 GB, free: 29.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/1.092, allocations: 5.74 MB / 0.5072 GB, free: 24.65 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/1.093, allocations: 1.754 MB / 0.5089 GB, free: 23.24 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002032/1.095, allocations: 262.2 kB / 0.5092 GB, free: 23.06 MB / 346.7 MB Notification: Performance of SimCode: time 1.88e-06/1.095, allocations: 0 / 0.5092 GB, free: 23.06 MB / 346.7 MB Notification: Performance of Templates: time 0.3247/1.42, allocations: 124.2 MB / 0.6305 GB, free: 16.24 MB / 346.7 MB