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 1.06/1.06, allocations: 111.2 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002595/0.0002592, allocations: 4 kB / 158.3 MB, free: 15.19 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04522/0.04551, allocations: 25.17 MB / 183.5 MB, free: 5.988 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1766/0.2221, allocations: 35.71 MB / 219.2 MB, free: 6.297 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.2224, allocations: 63.91 kB / 219.3 MB, free: 6.289 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0139/0.2363, allocations: 4.011 MB / 223.3 MB, free: 4.727 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.403e-06/0.2363, allocations: 3.938 kB / 223.3 MB, free: 4.723 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.2363, allocations: 3.875 kB / 223.3 MB, free: 4.723 MB / 170.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.0005942/0.237, allocations: 497 kB / 223.8 MB, free: 4.266 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.237, allocations: 8.75 kB / 223.8 MB, free: 4.266 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.807e-05/0.2371, allocations: 27.72 kB / 223.8 MB, free: 4.25 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.2374, allocations: 238.9 kB / 224 MB, free: 4.02 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.2374, allocations: 13.27 kB / 224.1 MB, free: 4.02 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.382e-05/0.2375, allocations: 14.94 kB / 224.1 MB, free: 4.02 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.2378, allocations: 176.7 kB / 224.2 MB, free: 3.957 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.2378, allocations: 3.953 kB / 224.2 MB, free: 3.953 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.2379, allocations: 7.125 kB / 224.3 MB, free: 3.949 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7e-06/0.2379, allocations: 3.844 kB / 224.3 MB, free: 3.949 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003102/0.2382, allocations: 149.7 kB / 224.4 MB, free: 3.918 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009752/0.2392, allocations: 0.5748 MB / 225 MB, free: 3.527 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.2395, allocations: 175.5 kB / 225.2 MB, free: 3.477 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.422e-05/0.2397, allocations: 84.88 kB / 225.2 MB, free: 3.379 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.2397, allocations: 34.52 kB / 225.3 MB, free: 3.336 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 2.958e-06/0.2397, allocations: 0 / 225.3 MB, free: 3.336 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.000592/0.2403, allocations: 293.8 kB / 225.6 MB, free: 3.25 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.2404, allocations: 55.25 kB / 225.6 MB, free: 3.188 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.2406, allocations: 194.7 kB / 225.8 MB, free: 3.07 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2406, allocations: 25.7 kB / 225.8 MB, free: 3.039 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.07e-05/0.2407, allocations: 198.4 kB / 226 MB, free: 2.871 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/0.2407, allocations: 57.05 kB / 226.1 MB, free: 2.832 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.324e-05/0.2408, allocations: 3.062 kB / 226.1 MB, free: 2.832 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.408e-05/0.2408, allocations: 317.7 kB / 226.4 MB, free: 2.52 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.241, allocations: 72.39 kB / 226.5 MB, free: 2.504 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.2412, allocations: 89.59 kB / 226.5 MB, free: 2.469 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.2413, allocations: 76.34 kB / 226.6 MB, free: 2.461 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.899e-06/0.2414, allocations: 0 / 226.6 MB, free: 2.461 MB / 170.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004385/0.2418, allocations: 219.3 kB / 226.8 MB, free: 2.398 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.2418, allocations: 4.875 kB / 226.8 MB, free: 2.398 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2419, allocations: 4.062 kB / 226.8 MB, free: 2.395 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.2419, allocations: 7.141 kB / 226.8 MB, free: 2.391 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.2421, allocations: 42.73 kB / 226.9 MB, free: 2.383 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.022e-06/0.2422, allocations: 3.812 kB / 226.9 MB, free: 2.383 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.2423, allocations: 22.55 kB / 226.9 MB, free: 2.371 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/0.2424, allocations: 9.312 kB / 226.9 MB, free: 2.371 MB / 170.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 () * Number of clocked 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.0001451/0.2425, allocations: 146 kB / 227.1 MB, free: 2.246 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.975e-05/0.2426, allocations: 19.97 kB / 227.1 MB, free: 2.234 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000541/0.2431, allocations: 251.5 kB / 227.3 MB, free: 2.164 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.2432, allocations: 7.781 kB / 227.3 MB, free: 2.16 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.55e-06/0.2432, allocations: 0 / 227.3 MB, free: 2.16 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.2432, allocations: 3.984 kB / 227.3 MB, free: 2.156 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003658/0.2436, allocations: 291.4 kB / 227.6 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.05e-06/0.2436, allocations: 0 / 227.6 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002525/0.2438, allocations: 36.64 kB / 227.7 MB, free: 1.91 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.352e-06/0.2439, allocations: 3.844 kB / 227.7 MB, free: 1.91 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.2439, allocations: 6.938 kB / 227.7 MB, free: 1.906 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.768e-06/0.2439, allocations: 3.844 kB / 227.7 MB, free: 1.906 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.953e-06/0.2439, allocations: 4 kB / 227.7 MB, free: 1.902 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006493/0.2446, allocations: 429 kB / 228.1 MB, free: 1.719 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.627e-05/0.2447, allocations: 96.73 kB / 228.2 MB, free: 1.609 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.306e-05/0.2447, allocations: 6.438 kB / 228.2 MB, free: 1.609 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.2449, allocations: 10.75 kB / 228.2 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.2449, allocations: 19.55 kB / 228.2 MB, free: 1.59 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.245, allocations: 11 kB / 228.2 MB, free: 1.59 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001508/0.2451, allocations: 157.2 kB / 228.4 MB, free: 1.496 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.62e-07/0.2451, allocations: 0 / 228.4 MB, free: 1.496 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000422/0.2456, allocations: 66.55 kB / 228.5 MB, free: 1.484 MB / 170.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 () * Number of clocked 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.0003915/0.246, allocations: 189.2 kB / 228.6 MB, free: 1.359 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003138/0.2463, allocations: 152.9 kB / 228.8 MB, free: 1.336 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.763e-06/0.2463, allocations: 0 / 228.8 MB, free: 1.336 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.2465, allocations: 87.19 kB / 228.9 MB, free: 1.32 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004976/0.247, allocations: 57.83 kB / 228.9 MB, free: 1.301 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.2484, allocations: 0.7074 MB / 229.6 MB, free: 0.8125 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.2486, allocations: 0.7468 MB / 230.4 MB, free: 80 kB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.261e-05/0.2487, allocations: 26.2 kB / 230.4 MB, free: 72 kB / 170.7 MB Notification: Performance of SimCode: time 1.506e-06/0.2487, allocations: 3.938 kB / 230.4 MB, free: 68 kB / 170.7 MB Notification: Performance of Templates: time 0.006205/0.2549, allocations: 2.735 MB / 233.2 MB, free: 13.61 MB / 186.7 MB