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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.565/1.565, allocations: 171.2 MB / 186.7 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003478, allocations: 4 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07/0.07037, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.01327/0.08369, allocations: 8.772 MB / 280.7 MB, free: 3.383 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007739/0.09148, allocations: 3.169 MB / 283.9 MB, free: 212 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002126/0.09365, allocations: 35.88 kB / 283.9 MB, free: 176 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001529/0.09521, allocations: 0.556 MB / 284.5 MB, free: 15.61 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003475/0.09872, allocations: 0.9077 MB / 285.4 MB, free: 14.7 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002352/0.1011, allocations: 0.5148 MB / 285.9 MB, free: 14.19 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004598/0.1057, allocations: 2.044 MB / 287.9 MB, free: 12.14 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001658/0.1074, allocations: 0.6799 MB / 288.6 MB, free: 11.44 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002067/0.1095, allocations: 0.9886 MB / 289.6 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002048/0.1116, allocations: 1.187 MB / 290.8 MB, free: 9.254 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005262/0.1122, allocations: 140 kB / 290.9 MB, free: 9.117 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007322/0.1129, allocations: 167.9 kB / 291.1 MB, free: 8.953 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005828/0.1135, allocations: 482.1 kB / 291.6 MB, free: 8.48 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008347/0.1144, allocations: 0.5042 MB / 292.1 MB, free: 7.969 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004796/0.1192, allocations: 3.256 MB / 295.3 MB, free: 4.703 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.635e-06/0.1192, allocations: 4 kB / 295.3 MB, free: 4.699 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.008e-06/0.1193, allocations: 0 / 295.3 MB, free: 4.699 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.706e-05/0.1194, allocations: 4 kB / 295.3 MB, free: 4.695 MB / 250.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.007514/0.1269, allocations: 2.676 MB / 298 MB, free: 1.945 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.1269, allocations: 8.031 kB / 298 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007741/0.1277, allocations: 288.5 kB / 298.3 MB, free: 1.652 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00361/0.1314, allocations: 1.317 MB / 299.6 MB, free: 288 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002177/0.1316, allocations: 156 kB / 299.8 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2098/0.3414, allocations: 191.4 kB / 299.9 MB, free: 27.97 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006062/0.3475, allocations: 1.845 MB / 301.8 MB, free: 27.64 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-05/0.3477, allocations: 10.02 kB / 301.8 MB, free: 27.64 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.3479, allocations: 82.25 kB / 301.9 MB, free: 27.58 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.286e-05/0.348, allocations: 49.44 kB / 301.9 MB, free: 27.58 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006511/0.3545, allocations: 1.9 MB / 303.8 MB, free: 26.9 MB / 250.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.0165/0.371, allocations: 7.34 MB / 311.2 MB, free: 22.61 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004798/0.3759, allocations: 2.199 MB / 313.4 MB, free: 21.33 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002363/0.3762, allocations: 119.5 kB / 313.5 MB, free: 21.23 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.3762, allocations: 56.38 kB / 313.5 MB, free: 21.18 MB / 250.7 MB Notification: Performance of pre-optimization done (n=220): time 6.357e-06/0.3762, allocations: 0 / 313.5 MB, free: 21.18 MB / 250.7 MB Notification: Performance of matching and sorting (n=336): time 0.1236/0.4998, allocations: 17.28 MB / 330.8 MB, free: 7.48 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1856/0.6855, allocations: 36.64 MB / 367.5 MB, free: 2.367 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003537/0.6891, allocations: 1.823 MB / 369.3 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000476/0.6896, allocations: 77.7 kB / 369.4 MB, free: 468 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009592/0.6905, allocations: 0.9051 MB / 370.3 MB, free: 15.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001401/0.692, allocations: 1.111 MB / 371.4 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002776/0.6923, allocations: 64 kB / 371.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003198/0.6926, allocations: 433.5 kB / 371.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003927/0.6965, allocations: 1.306 MB / 373.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004296/0.7008, allocations: 1.613 MB / 374.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004598/0.7055, allocations: 1.518 MB / 376.3 MB, free: 9.445 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.548e-05/0.7055, allocations: 4 kB / 376.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of matching and sorting (n=401) (initialization): time 0.02318/0.7287, allocations: 4.067 MB / 380.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.667e-05/0.7289, allocations: 33.7 kB / 380.4 MB, free: 5.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-05/0.7289, allocations: 4 kB / 380.4 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02309/0.7521, allocations: 1.537 MB / 381.9 MB, free: 3.727 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0076/0.7597, allocations: 0.5656 MB / 382.5 MB, free: 3.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02335/0.7831, allocations: 9.902 MB / 392.4 MB, free: 8.539 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005755/0.789, allocations: 151.9 kB / 392.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008747/0.7899, allocations: 123.9 kB / 392.7 MB, free: 8.27 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 (292): * Single equations (assignments): 282 * 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 48,2 38} Notification: Performance of prepare postOptimizeDAE: time 0.003646/0.7936, allocations: 0.5816 MB / 393.3 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/0.7951, allocations: 254.2 kB / 393.5 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/0.8093, allocations: 4.194 MB / 397.7 MB, free: 3.168 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01048/0.8198, allocations: 3.63 MB / 401.3 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/0.8199, allocations: 7.953 kB / 401.3 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.329e-05/0.82, allocations: 15.94 kB / 401.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02762/0.8476, allocations: 8.932 MB / 410.3 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.804e-05/0.8477, allocations: 4 kB / 410.3 MB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007885/0.8556, allocations: 483.4 kB / 410.8 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02676/0.8825, allocations: 1.59 MB / 412.4 MB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001079/0.8836, allocations: 83.91 kB / 412.4 MB, free: 4.242 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02675/0.9104, allocations: 9.947 MB / 422.4 MB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3499/1.26, allocations: 32.08 MB / 454.5 MB, free: 100.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/1.276, allocations: 5.946 MB / 460.4 MB, free: 97.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00176/1.278, allocations: 0.6524 MB / 461.1 MB, free: 96.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000608/1.278, allocations: 59.97 kB / 461.1 MB, free: 96.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002703/1.281, allocations: 142.8 kB / 461.3 MB, free: 96.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005137/1.282, allocations: 210.9 kB / 461.5 MB, free: 96.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002967/1.282, allocations: 108 kB / 461.6 MB, free: 96.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002251/1.284, allocations: 1.272 MB / 462.8 MB, free: 95.94 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.284, allocations: 0 / 462.8 MB, free: 95.94 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00363/1.288, allocations: 0.8098 MB / 463.7 MB, free: 95.84 MB / 346.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 (229): * Single equations (assignments): 222 * 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 37,5 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.001137/1.289, allocations: 311 kB / 464 MB, free: 95.65 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009688/1.299, allocations: 4.08 MB / 468 MB, free: 91.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.62e-06/1.299, allocations: 1.094 kB / 468 MB, free: 91.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005859/1.305, allocations: 2.515 MB / 470.6 MB, free: 88.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002217/1.307, allocations: 294.6 kB / 470.8 MB, free: 88.66 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/1.321, allocations: 7.895 MB / 478.7 MB, free: 80.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/1.323, allocations: 1.743 MB / 480.5 MB, free: 78.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001671/1.325, allocations: 233.6 kB / 480.7 MB, free: 78.68 MB / 346.7 MB Notification: Performance of SimCode: time 1.954e-06/1.325, allocations: 0 / 480.7 MB, free: 78.68 MB / 346.7 MB Notification: Performance of Templates: time 0.314/1.639, allocations: 121.1 MB / 0.5877 GB, free: 99.15 MB / 362.7 MB