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.195/1.195, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002589/0.0002591, allocations: 4 kB / 158.2 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04629/0.04657, allocations: 25.18 MB / 183.4 MB, free: 6.004 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002433/0.04905, allocations: 1.558 MB / 185 MB, free: 4.445 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.05029, allocations: 0.5695 MB / 185.5 MB, free: 3.871 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.05042, allocations: 4 kB / 185.5 MB, free: 3.867 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002725/0.05071, allocations: 71.75 kB / 185.6 MB, free: 3.797 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002861/0.05101, allocations: 111.7 kB / 185.7 MB, free: 3.688 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.05125, allocations: 59.86 kB / 185.8 MB, free: 3.629 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003025/0.05157, allocations: 179.6 kB / 186 MB, free: 3.453 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.05176, allocations: 66.34 kB / 186 MB, free: 3.391 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.05191, allocations: 75.77 kB / 186.1 MB, free: 3.316 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002399/0.05217, allocations: 103.7 kB / 186.2 MB, free: 3.215 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.279e-05/0.05222, allocations: 11.98 kB / 186.2 MB, free: 3.203 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.05234, allocations: 16 kB / 186.2 MB, free: 3.188 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.639e-05/0.05242, allocations: 39.84 kB / 186.3 MB, free: 3.148 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 8.301e-05/0.05252, allocations: 69.52 kB / 186.3 MB, free: 3.074 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002978/0.05283, allocations: 191.5 kB / 186.5 MB, free: 2.887 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.566e-06/0.05285, allocations: 3.938 kB / 186.5 MB, free: 2.883 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.962e-06/0.05286, allocations: 0 / 186.5 MB, free: 2.883 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.05288, allocations: 0 / 186.5 MB, free: 2.883 MB / 154.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.0007994/0.05369, allocations: 491.2 kB / 187 MB, free: 2.352 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.05375, allocations: 12.03 kB / 187 MB, free: 2.34 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.916e-05/0.05383, allocations: 23.72 kB / 187 MB, free: 2.316 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.0542, allocations: 231.1 kB / 187.3 MB, free: 2.051 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.05424, allocations: 12.33 kB / 187.3 MB, free: 2.039 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.21e-05/0.05431, allocations: 19.98 kB / 187.3 MB, free: 2.02 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000376/0.05469, allocations: 152.2 kB / 187.4 MB, free: 1.867 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.05473, allocations: 0 / 187.4 MB, free: 1.867 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.832e-05/0.05476, allocations: 12 kB / 187.5 MB, free: 1.855 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.05479, allocations: 11.94 kB / 187.5 MB, free: 1.844 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003081/0.05511, allocations: 116.2 kB / 187.6 MB, free: 1.73 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.05633, allocations: 0.5665 MB / 188.2 MB, free: 1.113 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.05671, allocations: 150.6 kB / 188.3 MB, free: 0.957 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.05686, allocations: 85.09 kB / 188.4 MB, free: 0.8555 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.05691, allocations: 30.56 kB / 188.4 MB, free: 0.8164 MB / 154.7 MB Notification: Performance of pre-optimization done (n=17): time 2.534e-06/0.05692, allocations: 0 / 188.4 MB, free: 0.8164 MB / 154.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005998/0.05753, allocations: 250.9 kB / 188.7 MB, free: 0.5664 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.05759, allocations: 51.41 kB / 188.7 MB, free: 0.5039 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002712/0.05787, allocations: 207 kB / 188.9 MB, free: 300 kB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.05792, allocations: 33.7 kB / 188.9 MB, free: 260 kB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.05807, allocations: 202.7 kB / 189.1 MB, free: 56 kB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.446e-05/0.05815, allocations: 55.2 kB / 189.2 MB, free: 0 / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.045e-05/0.05817, allocations: 0 / 189.2 MB, free: 0 / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.05835, allocations: 322.8 kB / 189.5 MB, free: 15.68 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.0585, allocations: 55.97 kB / 189.6 MB, free: 15.62 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.05868, allocations: 82.73 kB / 189.6 MB, free: 15.53 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.05886, allocations: 64.92 kB / 189.7 MB, free: 15.47 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.05888, allocations: 0 / 189.7 MB, free: 15.47 MB / 170.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004387/0.05932, allocations: 191.3 kB / 189.9 MB, free: 15.28 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.05936, allocations: 4 kB / 189.9 MB, free: 15.27 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.067e-06/0.05938, allocations: 3.938 kB / 189.9 MB, free: 15.27 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.05941, allocations: 4 kB / 189.9 MB, free: 15.27 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.0597, allocations: 43.92 kB / 189.9 MB, free: 15.22 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.05973, allocations: 4 kB / 190 MB, free: 15.22 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.0599, allocations: 23.91 kB / 190 MB, free: 15.2 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.05993, allocations: 4 kB / 190 MB, free: 15.19 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.000191/0.06013, allocations: 149.7 kB / 190.1 MB, free: 15.04 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.247e-05/0.06022, allocations: 23.72 kB / 190.1 MB, free: 15.01 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004799/0.06071, allocations: 199.4 kB / 190.3 MB, free: 14.8 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.97e-06/0.06073, allocations: 4 kB / 190.3 MB, free: 14.8 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.06075, allocations: 7.891 kB / 190.4 MB, free: 14.79 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.211e-06/0.06077, allocations: 4 kB / 190.4 MB, free: 14.79 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004319/0.06121, allocations: 269.5 kB / 190.6 MB, free: 14.48 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.779e-06/0.06123, allocations: 0 / 190.6 MB, free: 14.48 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.06147, allocations: 31.98 kB / 190.7 MB, free: 14.45 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.714e-06/0.06149, allocations: 0 / 190.7 MB, free: 14.45 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/0.06153, allocations: 8 kB / 190.7 MB, free: 14.44 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.022e-06/0.06154, allocations: 3.938 kB / 190.7 MB, free: 14.43 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.948e-06/0.06155, allocations: 0 / 190.7 MB, free: 14.43 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006358/0.0622, allocations: 371.4 kB / 191 MB, free: 14.06 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.346e-05/0.06231, allocations: 96.89 kB / 191.1 MB, free: 13.95 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.952e-05/0.06236, allocations: 4 kB / 191.1 MB, free: 13.94 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.06252, allocations: 7.984 kB / 191.1 MB, free: 13.93 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.552e-05/0.06257, allocations: 7.984 kB / 191.1 MB, free: 13.93 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.0626, allocations: 15.95 kB / 191.2 MB, free: 13.91 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.000197/0.06281, allocations: 160.4 kB / 191.3 MB, free: 13.75 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.63e-07/0.06282, allocations: 0 / 191.3 MB, free: 13.75 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004339/0.06327, allocations: 51.91 kB / 191.4 MB, free: 13.7 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 (17): * Single equations (assignments): 16 * 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.0004714/0.06375, allocations: 189.5 kB / 191.6 MB, free: 13.53 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.000372/0.06415, allocations: 146.5 kB / 191.7 MB, free: 13.39 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.008e-06/0.06416, allocations: 0 / 191.7 MB, free: 13.39 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.06433, allocations: 71.91 kB / 191.8 MB, free: 13.32 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005443/0.06489, allocations: 56.23 kB / 191.8 MB, free: 13.27 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.06639, allocations: 0.6816 MB / 192.5 MB, free: 12.55 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.06688, allocations: 0.7555 MB / 193.3 MB, free: 11.77 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.065e-05/0.06698, allocations: 19.44 kB / 193.3 MB, free: 11.75 MB / 170.7 MB Notification: Performance of SimCode: time 1.645e-06/0.06699, allocations: 3.938 kB / 193.3 MB, free: 11.74 MB / 170.7 MB Notification: Performance of Templates: time 0.006365/0.07336, allocations: 2.759 MB / 196 MB, free: 8.988 MB / 170.7 MB