Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 2.147/2.147, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003468, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09601, allocations: 44.5 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4801/0.5762, allocations: 93.98 MB / 403 MB, free: 14.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.5765, allocations: 92.17 kB / 403.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1124/0.6889, allocations: 28.57 MB / 431.7 MB, free: 4.008 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.689, allocations: 3.938 kB / 431.7 MB, free: 4.004 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.718e-05/0.6891, allocations: 28 kB / 431.7 MB, free: 3.977 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003229/0.6923, allocations: 1.281 MB / 433 MB, free: 2.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.6924, allocations: 12.03 kB / 433 MB, free: 2.719 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/0.6935, allocations: 190.3 kB / 433.2 MB, free: 2.531 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002253/0.6957, allocations: 0.8095 MB / 434 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.489e-05/0.6958, allocations: 72.5 kB / 434.1 MB, free: 1.828 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001981/0.696, allocations: 102.5 kB / 434.2 MB, free: 1.762 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002305/0.6984, allocations: 0.9373 MB / 435.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.929e-05/0.6985, allocations: 3.5 kB / 435.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.6986, allocations: 41 kB / 435.2 MB, free: 1.094 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.753e-05/0.6986, allocations: 24 kB / 435.2 MB, free: 1.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/0.7006, allocations: 0.6613 MB / 435.8 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008381/0.709, allocations: 3.954 MB / 439.8 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.7102, allocations: 470 kB / 440.3 MB, free: 13 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.855e-05/0.7103, allocations: 4 kB / 440.3 MB, free: 13 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.7103, allocations: 37.44 kB / 440.3 MB, free: 12.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.837e-06/0.7103, allocations: 0 / 440.3 MB, free: 12.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.005159/0.7155, allocations: 1.515 MB / 441.8 MB, free: 11.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.7156, allocations: 81.55 kB / 441.9 MB, free: 11.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001759/0.7174, allocations: 0.8094 MB / 442.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001215/0.7176, allocations: 32.58 kB / 442.7 MB, free: 10.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005549/0.7181, allocations: 0.5637 MB / 443.3 MB, free: 10.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002317/0.7184, allocations: 171.5 kB / 443.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.311e-05/0.7184, allocations: 10.69 kB / 443.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.7187, allocations: 334.6 kB / 443.8 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000731/0.7194, allocations: 186.2 kB / 444 MB, free: 9.938 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008724/0.7203, allocations: 472.8 kB / 444.4 MB, free: 9.418 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008283/0.7212, allocations: 261.2 kB / 444.7 MB, free: 9.254 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.7212, allocations: 0 / 444.7 MB, free: 9.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002473/0.7237, allocations: 0.8042 MB / 445.5 MB, free: 8.621 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.7238, allocations: 12.06 kB / 445.5 MB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.571e-05/0.7238, allocations: 16 kB / 445.5 MB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004264/0.7242, allocations: 86.94 kB / 445.6 MB, free: 8.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.7254, allocations: 166.9 kB / 445.8 MB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003741/0.7292, allocations: 2.929 MB / 448.7 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.7304, allocations: 42.33 kB / 448.8 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.7305, allocations: 39.05 kB / 448.8 MB, free: 5.34 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 85 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000767/0.7313, allocations: 257.1 kB / 449 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002724/0.7316, allocations: 90.91 kB / 449.1 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001763/0.7333, allocations: 0.5275 MB / 449.7 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.7334, allocations: 16.03 kB / 449.7 MB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.7334, allocations: 3.938 kB / 449.7 MB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.7334, allocations: 3.984 kB / 449.7 MB, free: 4.656 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005902/0.7393, allocations: 1.47 MB / 451.1 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.121e-05/0.7394, allocations: 4.25 kB / 451.2 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/0.7408, allocations: 79.89 kB / 451.2 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006374/0.7415, allocations: 73.84 kB / 451.3 MB, free: 3.344 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.7416, allocations: 19.94 kB / 451.3 MB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007339/0.749, allocations: 2.906 MB / 454.2 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-05/0.7491, allocations: 8.016 kB / 454.2 MB, free: 160 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004645/0.7537, allocations: 0.8329 MB / 455.1 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000944/0.7547, allocations: 196 kB / 455.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004009/0.7552, allocations: 19.98 kB / 455.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002089/0.7573, allocations: 35.98 kB / 455.3 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004008/0.7577, allocations: 31.95 kB / 455.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/0.7579, allocations: 16 kB / 455.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002382/0.7603, allocations: 0.5381 MB / 455.9 MB, free: 14.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.112e-06/0.7604, allocations: 0 / 455.9 MB, free: 14.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00181/0.7622, allocations: 240 kB / 456.1 MB, free: 14.19 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006912/0.763, allocations: 318.7 kB / 456.4 MB, free: 13.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.7651, allocations: 0.7342 MB / 457.2 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/0.7651, allocations: 0 / 457.2 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.7663, allocations: 470.6 kB / 457.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/0.7681, allocations: 212 kB / 457.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005232/0.7734, allocations: 2.154 MB / 460 MB, free: 10.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008488/0.7743, allocations: 1.036 MB / 461 MB, free: 9.184 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008525/0.7751, allocations: 111.4 kB / 461.1 MB, free: 9.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000243/0.7754, allocations: 55.44 kB / 461.2 MB, free: 9.016 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.7754, allocations: 0 / 461.2 MB, free: 9.016 MB / 346.7 MB Notification: Performance of Templates: time 0.03946/0.8149, allocations: 12.06 MB / 473.3 MB, free: 13.03 MB / 362.7 MB