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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.043/1.043, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.378e-05/1.384e-05, allocations: 4 kB / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0442/0.04423, allocations: 25.18 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1685/0.2128, allocations: 34.95 MB / 208.2 MB, free: 7.031 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/0.213, allocations: 65.84 kB / 208.3 MB, free: 7.031 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01419/0.2272, allocations: 3.976 MB / 212.3 MB, free: 6.484 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.166e-06/0.2273, allocations: 0 / 212.3 MB, free: 6.484 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.2273, allocations: 4.5 kB / 212.3 MB, free: 6.484 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.0005584/0.2279, allocations: 470 kB / 212.7 MB, free: 6.078 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.2279, allocations: 9.094 kB / 212.8 MB, free: 6.078 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.007e-05/0.228, allocations: 23.28 kB / 212.8 MB, free: 6.066 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.2283, allocations: 244.9 kB / 213 MB, free: 5.84 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.2283, allocations: 5.656 kB / 213 MB, free: 5.84 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.276e-05/0.2284, allocations: 16.02 kB / 213 MB, free: 5.84 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003352/0.2287, allocations: 126.7 kB / 213.2 MB, free: 5.836 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.229, allocations: 154.5 kB / 213.3 MB, free: 5.797 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.2291, allocations: 0 / 213.3 MB, free: 5.797 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.2291, allocations: 0 / 213.3 MB, free: 5.797 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.442e-06/0.2291, allocations: 3.625 kB / 213.3 MB, free: 5.797 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009752/0.2301, allocations: 0.5399 MB / 213.9 MB, free: 5.523 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.2304, allocations: 163 kB / 214 MB, free: 5.492 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.2306, allocations: 88.3 kB / 214.1 MB, free: 5.484 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.516e-05/0.2307, allocations: 81.39 kB / 214.2 MB, free: 5.391 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.2308, allocations: 36.64 kB / 214.2 MB, free: 5.352 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 2.351e-06/0.2308, allocations: 1.812 kB / 214.2 MB, free: 5.352 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005406/0.2313, allocations: 213.1 kB / 214.4 MB, free: 5.305 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.047e-05/0.2314, allocations: 63.16 kB / 214.5 MB, free: 5.234 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.2316, allocations: 176.3 kB / 214.7 MB, free: 5.125 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.2316, allocations: 29.08 kB / 214.7 MB, free: 5.094 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.878e-05/0.2317, allocations: 201.3 kB / 214.9 MB, free: 4.926 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.455e-05/0.2317, allocations: 56.17 kB / 214.9 MB, free: 4.891 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.2317, allocations: 0 / 214.9 MB, free: 4.891 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.246e-05/0.2318, allocations: 319.4 kB / 215.3 MB, free: 4.578 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.2319, allocations: 59.39 kB / 215.3 MB, free: 4.578 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.2321, allocations: 91.69 kB / 215.4 MB, free: 4.555 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.2323, allocations: 76.41 kB / 215.5 MB, free: 4.551 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.2323, allocations: 0 / 215.5 MB, free: 4.551 MB / 170.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004482/0.2328, allocations: 207.2 kB / 215.7 MB, free: 4.508 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2328, allocations: 3.875 kB / 215.7 MB, free: 4.508 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.096e-06/0.2329, allocations: 0 / 215.7 MB, free: 4.508 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.2329, allocations: 6.906 kB / 215.7 MB, free: 4.508 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.2331, allocations: 49.67 kB / 215.7 MB, free: 4.5 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.489e-06/0.2331, allocations: 64 / 215.7 MB, free: 4.5 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.2333, allocations: 27.19 kB / 215.8 MB, free: 4.484 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.821e-05/0.2334, allocations: 7.75 kB / 215.8 MB, free: 4.484 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 () * 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 6.855e-05/0.2334, allocations: 104.9 kB / 215.9 MB, free: 4.379 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.793e-05/0.2335, allocations: 23.08 kB / 215.9 MB, free: 4.367 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005155/0.234, allocations: 238.3 kB / 216.1 MB, free: 4.324 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.2341, allocations: 7.938 kB / 216.1 MB, free: 4.316 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.54e-06/0.2341, allocations: 0 / 216.1 MB, free: 4.316 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.955e-06/0.2341, allocations: 2.062 kB / 216.1 MB, free: 4.316 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003282/0.2344, allocations: 249.2 kB / 216.4 MB, free: 4.148 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.03e-06/0.2344, allocations: 0 / 216.4 MB, free: 4.148 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.2347, allocations: 33.86 kB / 216.4 MB, free: 4.148 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.377e-06/0.2347, allocations: 3.875 kB / 216.4 MB, free: 4.148 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.2347, allocations: 0 / 216.4 MB, free: 4.148 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.939e-06/0.2348, allocations: 6.469 kB / 216.4 MB, free: 4.145 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.093e-06/0.2348, allocations: 3.875 kB / 216.4 MB, free: 4.145 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006461/0.2354, allocations: 415.3 kB / 216.8 MB, free: 3.992 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.2355, allocations: 96.61 kB / 216.9 MB, free: 3.887 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.909e-05/0.2356, allocations: 0 / 216.9 MB, free: 3.887 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.2357, allocations: 5.734 kB / 216.9 MB, free: 3.887 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.2358, allocations: 8.047 kB / 216.9 MB, free: 3.887 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.2358, allocations: 17.47 kB / 217 MB, free: 3.883 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001203/0.2359, allocations: 143.1 kB / 217.1 MB, free: 3.801 MB / 170.7 MB Notification: Performance of sort global known variables: time 8.64e-07/0.236, allocations: 0 / 217.1 MB, free: 3.801 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004306/0.2364, allocations: 60.59 kB / 217.2 MB, free: 3.789 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 () * 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.0004102/0.2368, allocations: 171.6 kB / 217.3 MB, free: 3.66 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0002884/0.2371, allocations: 145.9 kB / 217.5 MB, free: 3.652 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.902e-06/0.2371, allocations: 0 / 217.5 MB, free: 3.652 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.2373, allocations: 75.89 kB / 217.5 MB, free: 3.648 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004634/0.2378, allocations: 45.55 kB / 217.6 MB, free: 3.645 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.2389, allocations: 477.6 kB / 218.1 MB, free: 3.398 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.2391, allocations: 0.7483 MB / 218.8 MB, free: 2.703 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.831e-05/0.2392, allocations: 27.03 kB / 218.8 MB, free: 2.688 MB / 170.7 MB Notification: Performance of SimCode: time 1.444e-06/0.2392, allocations: 0 / 218.8 MB, free: 2.688 MB / 170.7 MB Notification: Performance of Templates: time 0.005118/0.2443, allocations: 2.631 MB / 221.5 MB, free: 1.859 MB / 170.7 MB