Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.703/1.703, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003433/0.0003433, allocations: 8 kB / 233.3 MB, free: 2.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08204/0.08241, allocations: 38.78 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003155/0.08562, allocations: 1.705 MB / 273.7 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.0878, allocations: 0.909 MB / 274.6 MB, free: 9.473 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.08796, allocations: 7.938 kB / 274.7 MB, free: 9.465 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003724/0.08834, allocations: 83.69 kB / 274.7 MB, free: 9.383 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003409/0.0887, allocations: 111.7 kB / 274.8 MB, free: 9.273 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.08907, allocations: 91.75 kB / 274.9 MB, free: 9.184 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.08945, allocations: 195.6 kB / 275.1 MB, free: 8.992 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002381/0.0897, allocations: 70.05 kB / 275.2 MB, free: 8.922 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.08987, allocations: 75.77 kB / 275.3 MB, free: 8.848 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/0.0901, allocations: 111.6 kB / 275.4 MB, free: 8.738 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.09015, allocations: 8 kB / 275.4 MB, free: 8.73 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.09037, allocations: 47.91 kB / 275.4 MB, free: 8.684 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.659e-05/0.09047, allocations: 43.84 kB / 275.5 MB, free: 8.641 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.422e-05/0.09056, allocations: 65.58 kB / 275.5 MB, free: 8.57 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000398/0.09097, allocations: 207.8 kB / 275.7 MB, free: 8.367 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.09099, allocations: 0 / 275.7 MB, free: 8.367 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.091, allocations: 0 / 275.7 MB, free: 8.367 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.09102, allocations: 0 / 275.7 MB, free: 8.367 MB / 234.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.0009425/0.09197, allocations: 0.5283 MB / 276.3 MB, free: 7.781 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.09203, allocations: 12.03 kB / 276.3 MB, free: 7.77 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.947e-05/0.09212, allocations: 50.55 kB / 276.3 MB, free: 7.711 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.0923, allocations: 27.72 kB / 276.4 MB, free: 7.684 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.09267, allocations: 242.7 kB / 276.6 MB, free: 7.406 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.098e-05/0.09271, allocations: 16.27 kB / 276.6 MB, free: 7.391 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.23e-05/0.09278, allocations: 20 kB / 276.6 MB, free: 7.371 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.0932, allocations: 148.2 kB / 276.8 MB, free: 7.223 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.09323, allocations: 7.922 kB / 276.8 MB, free: 7.215 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.096e-05/0.09327, allocations: 8 kB / 276.8 MB, free: 7.207 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.09329, allocations: 4 kB / 276.8 MB, free: 7.203 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.09365, allocations: 108.2 kB / 276.9 MB, free: 7.098 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.09488, allocations: 0.5586 MB / 277.5 MB, free: 6.488 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003867/0.09528, allocations: 146.5 kB / 277.6 MB, free: 6.336 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.09533, allocations: 4 kB / 277.6 MB, free: 6.332 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000293/0.09564, allocations: 104.5 kB / 277.7 MB, free: 6.219 MB / 234.7 MB Notification: Performance of pre-optimization done (n=18): time 2.555e-06/0.09566, allocations: 0 / 277.7 MB, free: 6.219 MB / 234.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006129/0.09628, allocations: 203.8 kB / 277.9 MB, free: 6.016 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.09633, allocations: 59.41 kB / 278 MB, free: 5.945 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003724/0.09672, allocations: 259.9 kB / 278.2 MB, free: 5.68 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.09677, allocations: 25.7 kB / 278.2 MB, free: 5.648 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.09692, allocations: 202.7 kB / 278.4 MB, free: 5.449 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.09701, allocations: 71.08 kB / 278.5 MB, free: 5.379 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.395e-05/0.09703, allocations: 0 / 278.5 MB, free: 5.379 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.09719, allocations: 326.8 kB / 278.8 MB, free: 5.051 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.09737, allocations: 51.84 kB / 278.9 MB, free: 5 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.09757, allocations: 74.73 kB / 279 MB, free: 4.918 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002399/0.09782, allocations: 89.83 kB / 279 MB, free: 4.824 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.09784, allocations: 0 / 279 MB, free: 4.824 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005248/0.09837, allocations: 224 kB / 279.3 MB, free: 4.594 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.675e-05/0.09843, allocations: 37.7 kB / 279.3 MB, free: 4.551 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.09846, allocations: 0 / 279.3 MB, free: 4.551 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.09848, allocations: 3.938 kB / 279.3 MB, free: 4.547 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000341/0.09883, allocations: 35.98 kB / 279.3 MB, free: 4.512 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.09886, allocations: 4 kB / 279.3 MB, free: 4.508 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.09906, allocations: 27.77 kB / 279.4 MB, free: 4.48 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.0991, allocations: 8 kB / 279.4 MB, free: 4.473 MB / 234.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: 3 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * 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.0002002/0.09931, allocations: 149.8 kB / 279.5 MB, free: 4.316 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-05/0.09936, allocations: 23.72 kB / 279.5 MB, free: 4.293 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.947e-05/0.09946, allocations: 29.86 kB / 279.6 MB, free: 4.266 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.09948, allocations: 4 kB / 279.6 MB, free: 4.262 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.0995, allocations: 0 / 279.6 MB, free: 4.262 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.09951, allocations: 3.984 kB / 279.6 MB, free: 4.258 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003904/0.09991, allocations: 273.5 kB / 279.8 MB, free: 3.941 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.09993, allocations: 3.953 kB / 279.8 MB, free: 3.938 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/0.1003, allocations: 35.92 kB / 279.9 MB, free: 3.902 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.1003, allocations: 0 / 279.9 MB, free: 3.902 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.1003, allocations: 8 kB / 279.9 MB, free: 3.895 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.1003, allocations: 4 kB / 279.9 MB, free: 3.891 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1003, allocations: 0 / 279.9 MB, free: 3.891 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006283/0.101, allocations: 251.2 kB / 280.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.888e-05/0.1011, allocations: 100.8 kB / 280.2 MB, free: 3.512 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.507e-05/0.1011, allocations: 8 kB / 280.2 MB, free: 3.504 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.1013, allocations: 4 kB / 280.3 MB, free: 3.5 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.711e-05/0.1014, allocations: 19.95 kB / 280.3 MB, free: 3.48 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.1014, allocations: 7.938 kB / 280.3 MB, free: 3.473 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002775/0.1017, allocations: 193.6 kB / 280.5 MB, free: 3.285 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1017, allocations: 3.938 kB / 280.5 MB, free: 3.281 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003707/0.1021, allocations: 63.94 kB / 280.5 MB, free: 3.219 MB / 234.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: 2 ($whenCondition1,lossTable.nextTimeEvent) * Number of discrete states: 1 (lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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.00171/0.1038, allocations: 0.9953 MB / 281.5 MB, free: 2.25 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004885/0.1043, allocations: 183.7 kB / 281.7 MB, free: 2.059 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.1043, allocations: 3.938 kB / 281.7 MB, free: 2.055 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001797/0.1045, allocations: 67.91 kB / 281.8 MB, free: 1.988 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003991/0.1049, allocations: 28.97 kB / 281.8 MB, free: 1.961 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.1069, allocations: 0.948 MB / 282.8 MB, free: 0.957 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005872/0.1075, allocations: 0.7518 MB / 283.5 MB, free: 184 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002772/0.1079, allocations: 63.42 kB / 283.6 MB, free: 120 kB / 234.7 MB Notification: Performance of SimCode: time 2.765e-06/0.1079, allocations: 0 / 283.6 MB, free: 120 kB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.76/2.868, allocations: 3.911 MB / 287.5 MB, free: 12.2 MB / 250.7 MB "Error: Could not read variable lossTable.tableID.id in file Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat. Warning: Get data of variable lossTable.tableID.id from file Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat failed! " Variables in the reference:time,core.T,winding.T Variables in the result:TAmb,Tcore.T,Tcore.port.Q_flow,Tcore.port.T,Twinding.T,Twinding.port.Q_flow,Twinding.port.T,convection.Gc,convection.Q_flow,convection.dT,convection.fluid.Q_flow,convection.fluid.T,convection.solid.Q_flow,convection.solid.T,convectionConstant.k,convectionConstant.y,core.C,core.T,core.der_T,core.port.Q_flow,core.port.T,coreLosses.Q_flow,coreLosses.T_ref,coreLosses.alpha,coreLosses.port.Q_flow,coreLosses.port.T,der(core.T),der(winding.T),environment.T,environment.port.Q_flow,environment.port.T,lossTable.columns[1],lossTable.columns[2],lossTable.extrapolation,lossTable.nextTimeEvent,lossTable.nout,lossTable.offset[1],lossTable.p_offset[1],lossTable.p_offset[2],lossTable.smoothness,lossTable.startTime,lossTable.t_max,lossTable.t_min,lossTable.tableOnFile,lossTable.tableOnFileRead,lossTable.table[1,1],lossTable.table[1,2],lossTable.table[1,3],lossTable.table[2,1],lossTable.table[2,2],lossTable.table[2,3],lossTable.table[3,1],lossTable.table[3,2],lossTable.table[3,3],lossTable.table[4,1],lossTable.table[4,2],lossTable.table[4,3],lossTable.verboseRead,lossTable.y[1],lossTable.y[2],time,winding.C,winding.T,winding.der_T,winding.port.Q_flow,winding.port.T,winding2core.G,winding2core.Q_flow,winding2core.dT,winding2core.port_a.Q_flow,winding2core.port_a.T,winding2core.port_b.Q_flow,winding2core.port_b.T,windingLosses.Q_flow,windingLosses.T_ref,windingLosses.alpha,windingLosses.port.Q_flow,windingLosses.port.T