Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 1.862/1.862, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003634, allocations: 12 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08268/0.08307, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3975/0.4806, allocations: 82.98 MB / 355.6 MB, free: 6.594 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004842/0.4812, allocations: 99.66 kB / 355.7 MB, free: 6.539 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.228/0.7092, allocations: 44.17 MB / 399.9 MB, free: 212 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.7092, allocations: 0 / 399.9 MB, free: 212 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002909/0.7096, allocations: 48 kB / 399.9 MB, free: 164 kB / 314.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.01146/0.721, allocations: 2.618 MB / 402.5 MB, free: 13.47 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.7211, allocations: 8.031 kB / 402.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001413/0.7225, allocations: 288.5 kB / 402.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004524/0.7271, allocations: 1.266 MB / 404.1 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003021/0.7274, allocations: 156 kB / 404.2 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000976/0.7284, allocations: 203.9 kB / 404.4 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008111/0.7365, allocations: 1.852 MB / 406.3 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.647e-05/0.7367, allocations: 4 kB / 406.3 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004186/0.7371, allocations: 80 kB / 406.4 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.729e-05/0.7372, allocations: 51.95 kB / 406.4 MB, free: 9.457 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009007/0.7462, allocations: 1.956 MB / 408.4 MB, free: 7.484 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02738/0.7736, allocations: 7.453 MB / 415.8 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007486/0.7812, allocations: 2.268 MB / 418.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004814/0.7817, allocations: 123.1 kB / 418.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.383e-05/0.7818, allocations: 64.5 kB / 418.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 5.931e-06/0.7818, allocations: 0 / 418.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=350): time 0.4109/1.193, allocations: 17.5 MB / 435.8 MB, free: 86.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2974/1.49, allocations: 36.58 MB / 472.4 MB, free: 73.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004007/1.494, allocations: 1.82 MB / 474.2 MB, free: 73.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007578/1.495, allocations: 83.16 kB / 474.3 MB, free: 73.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009781/1.496, allocations: 0.956 MB / 475.2 MB, free: 72.42 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001665/1.498, allocations: 1.158 MB / 476.4 MB, free: 71.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004064/1.498, allocations: 65.94 kB / 476.4 MB, free: 71.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002271/1.498, allocations: 423.9 kB / 476.8 MB, free: 71.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004577/1.503, allocations: 1.359 MB / 478.2 MB, free: 70.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004886/1.508, allocations: 1.637 MB / 479.8 MB, free: 69.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005064/1.513, allocations: 1.568 MB / 481.4 MB, free: 69.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.67e-05/1.513, allocations: 0 / 481.4 MB, free: 69.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.0139/1.527, allocations: 4.307 MB / 485.7 MB, free: 67.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.75e-05/1.527, allocations: 37.86 kB / 485.8 MB, free: 67.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/1.527, allocations: 3.969 kB / 485.8 MB, free: 67.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01989/1.547, allocations: 1.552 MB / 487.3 MB, free: 66.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006184/1.553, allocations: 0.591 MB / 487.9 MB, free: 66.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01053/1.564, allocations: 9.893 MB / 497.8 MB, free: 57.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005297/1.569, allocations: 166.5 kB / 498 MB, free: 57.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007944/1.57, allocations: 131.3 kB / 498.1 MB, free: 57.45 MB / 346.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (303): * Single equations (assignments): 293 * 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.002301/1.572, allocations: 0.582 MB / 498.7 MB, free: 56.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008997/1.573, allocations: 252.9 kB / 498.9 MB, free: 56.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/1.587, allocations: 4.265 MB / 0.4914 GB, free: 52.86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01172/1.599, allocations: 3.679 MB / 0.495 GB, free: 49.47 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/1.599, allocations: 4 kB / 0.495 GB, free: 49.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.395e-05/1.599, allocations: 14.2 kB / 0.495 GB, free: 49.46 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02618/1.625, allocations: 9.384 MB / 0.5042 GB, free: 41.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.094e-05/1.625, allocations: 4 kB / 0.5042 GB, free: 41.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00813/1.633, allocations: 0.5046 MB / 0.5047 GB, free: 41.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02196/1.655, allocations: 1.596 MB / 0.5062 GB, free: 39.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008186/1.656, allocations: 87.91 kB / 0.5063 GB, free: 39.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01105/1.667, allocations: 9.949 MB / 0.516 GB, free: 28.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3186/1.986, allocations: 32.54 MB / 0.5478 GB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02296/2.009, allocations: 6.229 MB / 0.5539 GB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002712/2.012, allocations: 0.7084 MB / 0.5546 GB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001055/2.013, allocations: 63.95 kB / 0.5546 GB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004728/2.017, allocations: 159.8 kB / 0.5548 GB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/2.019, allocations: 230.3 kB / 0.555 GB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004787/2.019, allocations: 107.9 kB / 0.5551 GB, free: 4.344 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003587/2.023, allocations: 1.27 MB / 0.5563 GB, free: 3.082 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.023, allocations: 0 / 0.5563 GB, free: 3.082 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005163/2.028, allocations: 0.8533 MB / 0.5572 GB, free: 2.234 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 37,5 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.001492/2.029, allocations: 330 kB / 0.5575 GB, free: 1.973 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.2913/2.321, allocations: 4.19 MB / 0.5616 GB, free: 94.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.759e-05/2.321, allocations: 0.8125 kB / 0.5616 GB, free: 94.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00889/2.33, allocations: 2.614 MB / 0.5641 GB, free: 93.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003101/2.333, allocations: 299.7 kB / 0.5644 GB, free: 93.83 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02182/2.355, allocations: 8.029 MB / 0.5723 GB, free: 90.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002556/2.357, allocations: 1.754 MB / 0.574 GB, free: 89.9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004021/2.361, allocations: 333.1 kB / 0.5743 GB, free: 89.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002025/2.363, allocations: 209.3 kB / 0.5745 GB, free: 89.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/2.363, allocations: 1.219 kB / 0.5745 GB, free: 89.88 MB / 362.7 MB Notification: Performance of Templates: time 0.1225/2.486, allocations: 50.81 MB / 0.6241 GB, free: 68.37 MB / 362.7 MB