Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadModel(Modelica): time 0.9478/0.9478, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.861e-05/1.889e-05, allocations: 0 / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1387, allocations: 25.15 MB / 179.4 MB, free: 0.7891 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05402/0.1928, allocations: 35.63 MB / 215.1 MB, free: 13.46 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.193, allocations: 59.95 kB / 215.1 MB, free: 13.41 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01591/0.2089, allocations: 4.01 MB / 219.1 MB, free: 9.395 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.996e-06/0.209, allocations: 0 / 219.1 MB, free: 9.395 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.799e-05/0.209, allocations: 4 kB / 219.1 MB, free: 9.391 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0007013/0.2097, allocations: 471.2 kB / 219.6 MB, free: 8.883 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.2098, allocations: 12.03 kB / 219.6 MB, free: 8.871 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.945e-05/0.2099, allocations: 27.72 kB / 219.6 MB, free: 8.844 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.2102, allocations: 231 kB / 219.8 MB, free: 8.578 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.2103, allocations: 12.33 kB / 219.9 MB, free: 8.566 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.984e-05/0.2103, allocations: 20 kB / 219.9 MB, free: 8.547 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003842/0.2107, allocations: 164.6 kB / 220 MB, free: 8.383 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.2108, allocations: 8.172 kB / 220 MB, free: 8.375 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.101e-05/0.2108, allocations: 8 kB / 220.1 MB, free: 8.367 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.357e-06/0.2108, allocations: 7.938 kB / 220.1 MB, free: 8.359 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003634/0.2112, allocations: 136.2 kB / 220.2 MB, free: 8.227 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.2124, allocations: 0.5899 MB / 220.8 MB, free: 7.582 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003977/0.2128, allocations: 178.5 kB / 221 MB, free: 7.398 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.2131, allocations: 88.84 kB / 221 MB, free: 7.309 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/0.2132, allocations: 85.09 kB / 221.1 MB, free: 7.207 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.2133, allocations: 38.52 kB / 221.2 MB, free: 7.16 MB / 186.7 MB Notification: Performance of pre-optimization done (n=17): time 2.627e-06/0.2133, allocations: 0 / 221.2 MB, free: 7.16 MB / 186.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005347/0.2138, allocations: 217.6 kB / 221.4 MB, free: 6.941 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.2139, allocations: 59.39 kB / 221.4 MB, free: 6.871 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.2142, allocations: 190 kB / 221.6 MB, free: 6.676 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.2142, allocations: 29.7 kB / 221.7 MB, free: 6.641 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.2144, allocations: 194.8 kB / 221.8 MB, free: 6.449 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.108e-05/0.2144, allocations: 55.2 kB / 221.9 MB, free: 6.395 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.614e-05/0.2145, allocations: 0 / 221.9 MB, free: 6.395 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.2146, allocations: 326.8 kB / 222.2 MB, free: 6.066 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.2148, allocations: 63.98 kB / 222.3 MB, free: 6.004 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.215, allocations: 95.34 kB / 222.4 MB, free: 5.902 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.2152, allocations: 77.64 kB / 222.4 MB, free: 5.828 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.858e-06/0.2152, allocations: 0 / 222.4 MB, free: 5.828 MB / 186.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004769/0.2157, allocations: 217.7 kB / 222.7 MB, free: 5.613 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.2158, allocations: 4 kB / 222.7 MB, free: 5.609 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2158, allocations: 3.953 kB / 222.7 MB, free: 5.605 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.2158, allocations: 4.062 kB / 222.7 MB, free: 5.602 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.2161, allocations: 47.92 kB / 222.7 MB, free: 5.555 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.446e-06/0.2161, allocations: 0 / 222.7 MB, free: 5.555 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.2163, allocations: 27.73 kB / 222.7 MB, free: 5.527 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.2163, allocations: 15.94 kB / 222.8 MB, free: 5.512 MB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (lossTable.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.2164, allocations: 109 kB / 222.9 MB, free: 5.398 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.599e-05/0.2165, allocations: 15.81 kB / 222.9 MB, free: 5.383 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005944/0.2171, allocations: 258 kB / 223.1 MB, free: 5.121 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.446e-06/0.2171, allocations: 4 kB / 223.1 MB, free: 5.117 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2172, allocations: 0 / 223.1 MB, free: 5.117 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.909e-06/0.2172, allocations: 3.953 kB / 223.1 MB, free: 5.113 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004468/0.2176, allocations: 285.4 kB / 223.4 MB, free: 4.785 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.743e-06/0.2176, allocations: 0 / 223.4 MB, free: 4.785 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002478/0.2179, allocations: 43.92 kB / 223.5 MB, free: 4.742 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.2179, allocations: 0 / 223.5 MB, free: 4.742 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.218, allocations: 4 kB / 223.5 MB, free: 4.738 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.218, allocations: 4 kB / 223.5 MB, free: 4.734 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.504e-06/0.218, allocations: 0 / 223.5 MB, free: 4.734 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007588/0.2187, allocations: 427 kB / 223.9 MB, free: 4.301 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.015e-05/0.2189, allocations: 100.9 kB / 224 MB, free: 4.184 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.2189, allocations: 0 / 224 MB, free: 4.184 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.2191, allocations: 11.98 kB / 224 MB, free: 4.172 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.2191, allocations: 11.98 kB / 224 MB, free: 4.16 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.2192, allocations: 8.062 kB / 224 MB, free: 4.152 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002009/0.2194, allocations: 160.4 kB / 224.2 MB, free: 3.996 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.8e-07/0.2194, allocations: 0 / 224.2 MB, free: 3.996 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004161/0.2198, allocations: 67.81 kB / 224.2 MB, free: 3.93 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 1 (lossTable.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004284/0.2203, allocations: 194.8 kB / 224.4 MB, free: 3.762 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003801/0.2207, allocations: 159 kB / 224.6 MB, free: 3.609 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.54e-06/0.2207, allocations: 0 / 224.6 MB, free: 3.609 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.2209, allocations: 75.92 kB / 224.7 MB, free: 3.535 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005251/0.2214, allocations: 60.09 kB / 224.7 MB, free: 3.48 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.2227, allocations: 495.8 kB / 225.2 MB, free: 2.965 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004806/0.2232, allocations: 0.7597 MB / 226 MB, free: 2.176 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.187e-05/0.2233, allocations: 19.44 kB / 226 MB, free: 2.16 MB / 186.7 MB Notification: Performance of SimCode: time 1.537e-06/0.2233, allocations: 0 / 226 MB, free: 2.16 MB / 186.7 MB Notification: Performance of Templates: time 0.006009/0.2293, allocations: 2.72 MB / 228.7 MB, free: 15.45 MB / 202.7 MB