Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.061/1.061, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002668, allocations: 8 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05655/0.05684, allocations: 25.15 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2174/0.2743, allocations: 35.7 MB / 219.7 MB, free: 6.184 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.2747, allocations: 70.88 kB / 219.8 MB, free: 6.172 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02471/0.2994, allocations: 4.012 MB / 223.8 MB, free: 4.605 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.2995, allocations: 4 kB / 223.8 MB, free: 4.602 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.018e-05/0.2995, allocations: 3.719 kB / 223.8 MB, free: 4.602 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.000926/0.3004, allocations: 492.5 kB / 224.3 MB, free: 4.148 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3005, allocations: 10.88 kB / 224.3 MB, free: 4.148 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.452e-05/0.3006, allocations: 23.06 kB / 224.3 MB, free: 4.137 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/0.301, allocations: 247 kB / 224.6 MB, free: 3.898 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.3011, allocations: 15.17 kB / 224.6 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.1e-05/0.3012, allocations: 18.28 kB / 224.6 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000558/0.3017, allocations: 168.2 kB / 224.8 MB, free: 3.836 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.3018, allocations: 3.953 kB / 224.8 MB, free: 3.832 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.3018, allocations: 7.656 kB / 224.8 MB, free: 3.832 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.3018, allocations: 3.781 kB / 224.8 MB, free: 3.832 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01537/0.3172, allocations: 141.4 kB / 224.9 MB, free: 3.805 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.319, allocations: 0.5858 MB / 225.5 MB, free: 3.406 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005488/0.3196, allocations: 171.4 kB / 225.7 MB, free: 3.359 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001331/0.3198, allocations: 84.95 kB / 225.8 MB, free: 3.262 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.3198, allocations: 34.52 kB / 225.8 MB, free: 3.219 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 3.667e-06/0.3198, allocations: 3.938 kB / 225.8 MB, free: 3.215 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009707/0.3208, allocations: 290.4 kB / 226.1 MB, free: 3.137 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.3209, allocations: 51.41 kB / 226.1 MB, free: 3.074 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.3212, allocations: 211.5 kB / 226.3 MB, free: 2.945 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.3213, allocations: 33.14 kB / 226.4 MB, free: 2.914 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.784e-05/0.3214, allocations: 196.2 kB / 226.6 MB, free: 2.742 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/0.3215, allocations: 60.17 kB / 226.6 MB, free: 2.703 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.132e-05/0.3215, allocations: 3.938 kB / 226.6 MB, free: 2.703 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.498e-05/0.3216, allocations: 322.3 kB / 226.9 MB, free: 2.387 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.3218, allocations: 61.12 kB / 227 MB, free: 2.379 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002721/0.3221, allocations: 94.58 kB / 227.1 MB, free: 2.34 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.3238, allocations: 77.23 kB / 227.2 MB, free: 2.332 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.3238, allocations: 4 kB / 227.2 MB, free: 2.328 MB / 170.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007289/0.3246, allocations: 221.5 kB / 227.4 MB, free: 2.266 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.3246, allocations: 3.781 kB / 227.4 MB, free: 2.266 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.3246, allocations: 7.859 kB / 227.4 MB, free: 2.262 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.3247, allocations: 0 / 227.4 MB, free: 2.262 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004707/0.3252, allocations: 43.75 kB / 227.4 MB, free: 2.254 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.3252, allocations: 3.719 kB / 227.5 MB, free: 2.254 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000281/0.3255, allocations: 30.27 kB / 227.5 MB, free: 2.234 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/0.3256, allocations: 9.562 kB / 227.5 MB, free: 2.234 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.0002385/0.3258, allocations: 137.8 kB / 227.6 MB, free: 2.117 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.456e-05/0.3259, allocations: 27.16 kB / 227.7 MB, free: 2.102 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008503/0.3268, allocations: 250.8 kB / 227.9 MB, free: 2.031 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.3268, allocations: 3.844 kB / 227.9 MB, free: 2.031 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3268, allocations: 0 / 227.9 MB, free: 2.031 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3268, allocations: 7.953 kB / 227.9 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005613/0.3274, allocations: 287.1 kB / 228.2 MB, free: 1.789 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3274, allocations: 0 / 228.2 MB, free: 1.789 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.3279, allocations: 35.64 kB / 228.2 MB, free: 1.781 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.398e-06/0.3279, allocations: 7.766 kB / 228.2 MB, free: 1.777 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.187e-05/0.328, allocations: 3.938 kB / 228.2 MB, free: 1.777 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.328, allocations: 0 / 228.2 MB, free: 1.777 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.328, allocations: 3.969 kB / 228.2 MB, free: 1.777 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000987/0.329, allocations: 434.8 kB / 228.7 MB, free: 1.59 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.188e-05/0.3291, allocations: 96.45 kB / 228.8 MB, free: 1.48 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.468e-05/0.3292, allocations: 7.672 kB / 228.8 MB, free: 1.477 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.3294, allocations: 10.75 kB / 228.8 MB, free: 1.477 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.717e-05/0.3295, allocations: 7.828 kB / 228.8 MB, free: 1.473 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.3295, allocations: 7.656 kB / 228.8 MB, free: 1.473 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002267/0.3298, allocations: 159.8 kB / 228.9 MB, free: 1.379 MB / 170.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3298, allocations: 0 / 228.9 MB, free: 1.379 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006671/0.3305, allocations: 64.41 kB / 229 MB, free: 1.367 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.0005187/0.331, allocations: 198.2 kB / 229.2 MB, free: 1.23 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0005035/0.3315, allocations: 158.7 kB / 229.4 MB, free: 1.199 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.3316, allocations: 0 / 229.4 MB, free: 1.199 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002261/0.3318, allocations: 83.16 kB / 229.4 MB, free: 1.184 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008964/0.3327, allocations: 52.17 kB / 229.5 MB, free: 1.172 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.3458, allocations: 0.7037 MB / 230.2 MB, free: 0.6836 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.3462, allocations: 0.7565 MB / 230.9 MB, free: 15.94 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.3463, allocations: 19.78 kB / 231 MB, free: 15.94 MB / 186.7 MB Notification: Performance of SimCode: time 1.472e-06/0.3464, allocations: 3.938 kB / 231 MB, free: 15.93 MB / 186.7 MB Notification: Performance of Templates: time 0.01065/0.357, allocations: 2.723 MB / 233.7 MB, free: 13.56 MB / 186.7 MB