Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003971/0.0003974, allocations: 8 kB / 233.8 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1064, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4234/0.5298, allocations: 85.14 MB / 357.8 MB, free: 4.449 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/0.5302, allocations: 88.52 kB / 357.8 MB, free: 4.402 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1986/0.7288, allocations: 42.84 MB / 400.7 MB, free: 15.21 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.808e-06/0.7289, allocations: 0 / 400.7 MB, free: 15.21 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002885/0.7292, allocations: 39.98 kB / 400.7 MB, free: 15.17 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.009587/0.7388, allocations: 1.821 MB / 402.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.421e-05/0.7389, allocations: 8.031 kB / 402.6 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002829/0.7418, allocations: 301.7 kB / 402.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006846/0.7487, allocations: 1.208 MB / 404.1 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.749, allocations: 119.1 kB / 404.2 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008213/0.7499, allocations: 163.9 kB / 404.3 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008119/0.758, allocations: 1.5 MB / 405.8 MB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001422/0.7582, allocations: 11.84 kB / 405.8 MB, free: 9.867 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000348/0.7586, allocations: 60 kB / 405.9 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.02e-05/0.7587, allocations: 40 kB / 405.9 MB, free: 9.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006518/0.7652, allocations: 1.076 MB / 407 MB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0188/0.7841, allocations: 6.431 MB / 413.5 MB, free: 1.949 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/0.7868, allocations: 0.6388 MB / 414.1 MB, free: 1.297 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.883e-05/0.787, allocations: 8.562 kB / 414.1 MB, free: 1.289 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/0.787, allocations: 43.08 kB / 414.1 MB, free: 1.238 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 4.879e-06/0.787, allocations: 3.984 kB / 414.1 MB, free: 1.234 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.00962/0.7967, allocations: 2.518 MB / 416.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.7968, allocations: 111.5 kB / 416.8 MB, free: 14.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003138/0.8, allocations: 1.247 MB / 418 MB, free: 13.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001816/0.8002, allocations: 41.7 kB / 418.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.8013, allocations: 0.8569 MB / 418.9 MB, free: 12.31 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004313/0.8017, allocations: 256.3 kB / 419.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.698e-05/0.8018, allocations: 28 kB / 419.2 MB, free: 12.03 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.8021, allocations: 349.9 kB / 419.5 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.8032, allocations: 306.5 kB / 419.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.8048, allocations: 0.749 MB / 420.6 MB, free: 10.42 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.8062, allocations: 411 kB / 421 MB, free: 10.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-05/0.8063, allocations: 7.938 kB / 421 MB, free: 10.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.004877/0.8112, allocations: 1.326 MB / 422.3 MB, free: 8.668 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.372e-05/0.8113, allocations: 12 kB / 422.3 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.254e-05/0.8113, allocations: 16 kB / 422.3 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008363/0.8122, allocations: 143.1 kB / 422.5 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/0.814, allocations: 263.6 kB / 422.7 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006088/0.8202, allocations: 4.344 MB / 427.1 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/0.822, allocations: 60.02 kB / 427.1 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/0.8222, allocations: 59.98 kB / 427.2 MB, free: 3.371 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001088/0.8233, allocations: 357.3 kB / 427.6 MB, free: 3.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004122/0.8237, allocations: 134.3 kB / 427.7 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0033/0.827, allocations: 0.892 MB / 428.6 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.8271, allocations: 8 kB / 428.6 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.8271, allocations: 0 / 428.6 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/0.8271, allocations: 3.984 kB / 428.6 MB, free: 1.953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2729/1.1, allocations: 2.375 MB / 431 MB, free: 86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/1.1, allocations: 6.469 kB / 431 MB, free: 86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/1.101, allocations: 128.1 kB / 431.1 MB, free: 86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008345/1.102, allocations: 142.7 kB / 431.2 MB, free: 85.97 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/1.102, allocations: 19.47 kB / 431.3 MB, free: 85.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006847/1.109, allocations: 4.503 MB / 435.8 MB, free: 82.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/1.109, allocations: 5.469 kB / 435.8 MB, free: 82.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004547/1.114, allocations: 1.368 MB / 437.1 MB, free: 81.9 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009491/1.115, allocations: 282.8 kB / 437.4 MB, free: 81.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004215/1.115, allocations: 20.31 kB / 437.4 MB, free: 81.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/1.117, allocations: 47.5 kB / 437.5 MB, free: 81.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/1.117, allocations: 56.66 kB / 437.5 MB, free: 81.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.79e-05/1.117, allocations: 21.31 kB / 437.5 MB, free: 81.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002009/1.119, allocations: 0.8313 MB / 438.4 MB, free: 81.69 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.119, allocations: 0 / 438.4 MB, free: 81.69 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003758/1.123, allocations: 376.6 kB / 438.7 MB, free: 81.69 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001493/1.124, allocations: 381.9 kB / 439.1 MB, free: 81.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005518/1.13, allocations: 1.161 MB / 440.3 MB, free: 81.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-05/1.13, allocations: 1.859 kB / 440.3 MB, free: 81.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002871/1.133, allocations: 0.7013 MB / 441 MB, free: 80.92 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0043/1.137, allocations: 339.4 kB / 441.3 MB, free: 80.9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01354/1.151, allocations: 3.593 MB / 444.9 MB, free: 79.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001366/1.152, allocations: 1.246 MB / 446.2 MB, free: 78.45 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001986/1.154, allocations: 178.2 kB / 446.3 MB, free: 78.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000534/1.155, allocations: 86.7 kB / 446.4 MB, free: 78.41 MB / 346.7 MB Notification: Performance of SimCode: time 1.803e-06/1.155, allocations: 3.812 kB / 446.4 MB, free: 78.41 MB / 346.7 MB Notification: Performance of Templates: time 0.05436/1.209, allocations: 19.33 MB / 465.7 MB, free: 77.13 MB / 346.7 MB