Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.15/2.15, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004417/0.0004418, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1008, allocations: 44.5 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4813/0.5822, allocations: 74.52 MB / 383 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003344/0.5826, allocations: 76.06 kB / 383.1 MB, free: 14.8 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2331:7-2332:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$lossTable.getTableValueNoDer. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$lossTable.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$lossTable.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.0528/0.6354, allocations: 5.226 MB / 388.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.6355, allocations: 0 / 388.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.6355, allocations: 3.938 kB / 388.4 MB, free: 14.2 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0009589/0.6365, allocations: 0.5707 MB / 388.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.6365, allocations: 9.047 kB / 388.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.774e-05/0.6366, allocations: 51.09 kB / 389 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001853/0.6368, allocations: 32.27 kB / 389 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004216/0.6372, allocations: 258.8 kB / 389.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.6373, allocations: 11.72 kB / 389.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/0.6373, allocations: 18.09 kB / 389.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.6378, allocations: 166.7 kB / 389.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.6378, allocations: 3.938 kB / 389.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.6379, allocations: 6.688 kB / 389.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.6379, allocations: 3.844 kB / 389.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000362/0.6382, allocations: 121.5 kB / 389.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.6395, allocations: 0.6067 MB / 390.2 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004494/0.6399, allocations: 163.6 kB / 390.4 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.64, allocations: 0 / 390.4 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002991/0.6403, allocations: 132.5 kB / 390.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 2.675e-06/0.6403, allocations: 0 / 390.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0008265/0.6411, allocations: 239.5 kB / 390.7 MB, free: 12.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.6412, allocations: 51.41 kB / 390.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.6416, allocations: 228.5 kB / 391 MB, free: 12.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.891e-05/0.6417, allocations: 29.14 kB / 391 MB, free: 12.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.475e-05/0.6418, allocations: 202.3 kB / 391.2 MB, free: 12.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.253e-05/0.6419, allocations: 70.09 kB / 391.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.768e-05/0.6419, allocations: 7.438 kB / 391.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.218e-05/0.642, allocations: 323.4 kB / 391.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002361/0.6422, allocations: 67.81 kB / 391.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.6425, allocations: 108.1 kB / 391.8 MB, free: 12.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/0.6427, allocations: 116.8 kB / 391.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.6428, allocations: 7.812 kB / 391.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006602/0.6434, allocations: 270.3 kB / 392.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.095e-05/0.6435, allocations: 36.25 kB / 392.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.6435, allocations: 3.875 kB / 392.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.877e-05/0.6436, allocations: 0 / 392.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004175/0.644, allocations: 50.64 kB / 392.3 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.644, allocations: 3.984 kB / 392.3 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.6443, allocations: 33.33 kB / 392.3 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.117e-05/0.6444, allocations: 7.75 kB / 392.3 MB, free: 11.99 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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.0002435/0.6446, allocations: 146.1 kB / 392.4 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.539e-05/0.6447, allocations: 29.25 kB / 392.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006221/0.6453, allocations: 223.3 kB / 392.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.6454, allocations: 0 / 392.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.6454, allocations: 0 / 392.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.6454, allocations: 4 kB / 392.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003997/0.6458, allocations: 301.8 kB / 393 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.6458, allocations: 0 / 393 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003485/0.6462, allocations: 40.31 kB / 393 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.387e-06/0.6462, allocations: 3.953 kB / 393 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.627e-05/0.6462, allocations: 7.375 kB / 393 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.6462, allocations: 0 / 393 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.6463, allocations: 0 / 393 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007603/0.647, allocations: 317.9 kB / 393.4 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.6472, allocations: 114.6 kB / 393.5 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/0.6473, allocations: 15.72 kB / 393.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.6474, allocations: 7.062 kB / 393.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.6475, allocations: 13.94 kB / 393.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.6475, allocations: 7.062 kB / 393.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002588/0.6478, allocations: 184.5 kB / 393.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6478, allocations: 0 / 393.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004502/0.6483, allocations: 84.7 kB / 393.8 MB, free: 11.3 MB / 314.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: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001921/0.6502, allocations: 1.138 MB / 394.9 MB, free: 10.51 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006307/0.6509, allocations: 251.4 kB / 395.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.6509, allocations: 0 / 395.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.6512, allocations: 86.36 kB / 395.2 MB, free: 10.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004439/0.6516, allocations: 40.98 kB / 395.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.6536, allocations: 1.436 MB / 396.7 MB, free: 9.301 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.6539, allocations: 0.7574 MB / 397.5 MB, free: 8.598 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.6541, allocations: 75.39 kB / 397.5 MB, free: 8.59 MB / 314.7 MB Notification: Performance of SimCode: time 9.71e-07/0.6541, allocations: 3.938 kB / 397.5 MB, free: 8.586 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.942/3.596, allocations: 4.137 MB / 401.7 MB, free: 8.176 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat