Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 1.878/1.878, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003693/0.0003695, allocations: 15.98 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08078/0.08117, allocations: 44.5 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.01318/0.0944, allocations: 8.842 MB / 317.2 MB, free: 8.156 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007744/0.1022, allocations: 3.166 MB / 320.4 MB, free: 4.977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002106/0.1043, allocations: 31.94 kB / 320.4 MB, free: 4.945 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.1059, allocations: 0.5638 MB / 321 MB, free: 4.379 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003686/0.1097, allocations: 0.8999 MB / 321.9 MB, free: 3.477 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002466/0.1122, allocations: 0.5264 MB / 322.4 MB, free: 2.949 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004726/0.1169, allocations: 2.064 MB / 324.4 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001654/0.1186, allocations: 0.6878 MB / 325.1 MB, free: 168 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002266/0.1209, allocations: 1.02 MB / 326.2 MB, free: 15.14 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00243/0.1234, allocations: 1.218 MB / 327.4 MB, free: 13.92 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006339/0.1241, allocations: 140 kB / 327.5 MB, free: 13.78 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007041/0.1248, allocations: 163.9 kB / 327.7 MB, free: 13.62 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000613/0.1254, allocations: 494.1 kB / 328.2 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008323/0.1263, allocations: 0.5198 MB / 328.7 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004821/0.1311, allocations: 3.323 MB / 332 MB, free: 9.277 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.959e-06/0.1312, allocations: 0 / 332 MB, free: 9.277 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.892e-06/0.1312, allocations: 3.938 kB / 332 MB, free: 9.273 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.462e-05/0.1313, allocations: 0 / 332 MB, free: 9.273 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.008146/0.1395, allocations: 2.755 MB / 334.8 MB, free: 6.445 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1395, allocations: 11.97 kB / 334.8 MB, free: 6.434 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009109/0.1404, allocations: 296.4 kB / 335.1 MB, free: 6.141 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003787/0.1442, allocations: 1.317 MB / 336.4 MB, free: 4.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002397/0.1445, allocations: 156.1 kB / 336.5 MB, free: 4.613 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006094/0.1451, allocations: 207.9 kB / 336.7 MB, free: 4.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005785/0.151, allocations: 1.912 MB / 338.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.907e-05/0.1511, allocations: 0 / 338.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000255/0.1513, allocations: 84 kB / 338.7 MB, free: 2.359 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.876e-05/0.1514, allocations: 55.95 kB / 338.8 MB, free: 2.305 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006233/0.1576, allocations: 1.961 MB / 340.7 MB, free: 336 kB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01852/0.1762, allocations: 7.472 MB / 348.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005705/0.182, allocations: 2.305 MB / 350.5 MB, free: 6.227 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002028/0.1822, allocations: 37.97 kB / 350.6 MB, free: 6.191 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.949e-05/0.1823, allocations: 56.56 kB / 350.6 MB, free: 6.129 MB / 298.7 MB Notification: Performance of pre-optimization done (n=234): time 6.22e-06/0.1823, allocations: 0 / 350.6 MB, free: 6.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=361): time 0.08171/0.264, allocations: 18.33 MB / 368.9 MB, free: 3.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3714/0.6355, allocations: 34.59 MB / 403.5 MB, free: 41.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006353/0.6419, allocations: 1.821 MB / 405.3 MB, free: 39.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008673/0.6429, allocations: 86.69 kB / 405.4 MB, free: 39.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.6441, allocations: 0.9006 MB / 406.3 MB, free: 38.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002188/0.6463, allocations: 1.194 MB / 407.5 MB, free: 37.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005873/0.6469, allocations: 64 kB / 407.6 MB, free: 37.31 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003611/0.6473, allocations: 437.8 kB / 408 MB, free: 36.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00818/0.6555, allocations: 1.307 MB / 409.3 MB, free: 35.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00912/0.6647, allocations: 1.619 MB / 410.9 MB, free: 33.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005128/0.6699, allocations: 1.52 MB / 412.5 MB, free: 32.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.785e-05/0.67, allocations: 4 kB / 412.5 MB, free: 32.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=426) (initialization): time 0.01383/0.6838, allocations: 4.623 MB / 417.1 MB, free: 27.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.426e-05/0.6839, allocations: 41.69 kB / 417.1 MB, free: 27.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.362e-05/0.684, allocations: 4 kB / 417.1 MB, free: 27.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006799/0.6908, allocations: 1.35 MB / 418.5 MB, free: 26.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003421/0.6942, allocations: 0.5557 MB / 419 MB, free: 25.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03977/0.734, allocations: 19.59 MB / 438.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/0.7378, allocations: 152 kB / 438.8 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001017/0.7389, allocations: 116 kB / 438.9 MB, free: 4.949 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (306): * Single equations (assignments): 296 * 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%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 54,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.002931/0.7419, allocations: 0.5895 MB / 439.5 MB, free: 4.352 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009872/0.7429, allocations: 252.9 kB / 439.7 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02256/0.7655, allocations: 4.674 MB / 444.4 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01964/0.7852, allocations: 4.106 MB / 448.5 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/0.7852, allocations: 192 / 448.5 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.176e-05/0.7853, allocations: 27.88 kB / 448.5 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02839/0.8137, allocations: 9.402 MB / 457.9 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.243e-05/0.8138, allocations: 3.953 kB / 457.9 MB, free: 1.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003373/0.8172, allocations: 475.6 kB / 458.4 MB, free: 1.207 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00764/0.8249, allocations: 1.408 MB / 459.8 MB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005666/0.8255, allocations: 75.97 kB / 459.9 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03519/0.8607, allocations: 18.14 MB / 478 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1227/0.9835, allocations: 30.63 MB / 0.4967 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03967/1.023, allocations: 6.49 MB / 0.5031 GB, free: 6.848 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003811/1.027, allocations: 0.6422 MB / 0.5037 GB, free: 6.184 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/1.028, allocations: 64 kB / 0.5038 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004757/1.033, allocations: 135.9 kB / 0.5039 GB, free: 5.988 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00174/1.035, allocations: 274.9 kB / 0.5042 GB, free: 5.719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008072/1.036, allocations: 91.97 kB / 0.5042 GB, free: 5.629 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005296/1.041, allocations: 1.274 MB / 0.5055 GB, free: 4.363 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.93e-06/1.041, allocations: 0 / 0.5055 GB, free: 4.363 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009105/1.05, allocations: 1.031 MB / 0.5065 GB, free: 3.336 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * 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%) 4,(1,100.0%) 2,(1,100.0%) 5} * Non-linear torn systems: 2 {4 42,5 55} Notification: Performance of Backend phase and start with SimCode phase: time 0.002445/1.053, allocations: 338.8 kB / 0.5068 GB, free: 3.062 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.2243/1.277, allocations: 4.716 MB / 0.5114 GB, free: 126.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.89e-06/1.277, allocations: 1.125 kB / 0.5114 GB, free: 126.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007747/1.285, allocations: 3.17 MB / 0.5145 GB, free: 125.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002279/1.287, allocations: 296.4 kB / 0.5148 GB, free: 125.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/1.305, allocations: 8.101 MB / 0.5227 GB, free: 121.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002429/1.307, allocations: 1.823 MB / 0.5245 GB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001621/1.309, allocations: 187.1 kB / 0.5247 GB, free: 121.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.634e-06/1.309, allocations: 0 / 0.5247 GB, free: 121.1 MB / 394.7 MB Notification: Performance of Templates: time 0.1403/1.449, allocations: 124.5 MB / 0.6463 GB, free: 7.289 MB / 394.7 MB