Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 194.9 MB / 211.1 MB, free: 8.57 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003706, allocations: 12 kB / 264.1 MB, free: 3.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3202, allocations: 44.5 MB / 308.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1419/0.4622, allocations: 74.53 MB / 383.1 MB, free: 2.156 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/0.4626, allocations: 75.95 kB / 383.2 MB, free: 2.082 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.02362/0.4862, allocations: 5.223 MB / 388.4 MB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4863, allocations: 0 / 388.4 MB, free: 12.86 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.692e-05/0.4863, allocations: 8 kB / 388.4 MB, free: 12.85 MB / 330.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.001124/0.4874, allocations: 0.5692 MB / 389 MB, free: 12.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.945e-05/0.4875, allocations: 16.03 kB / 389 MB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.051e-05/0.4876, allocations: 46.55 kB / 389 MB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.4878, allocations: 35.66 kB / 389.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004956/0.4883, allocations: 251.5 kB / 389.3 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.408e-05/0.4884, allocations: 23.92 kB / 389.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.852e-05/0.4884, allocations: 16 kB / 389.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004813/0.4889, allocations: 161.4 kB / 389.5 MB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.489, allocations: 0 / 389.5 MB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/0.489, allocations: 8 kB / 389.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.489, allocations: 8 kB / 389.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004137/0.4894, allocations: 123.9 kB / 389.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/0.4908, allocations: 0.5977 MB / 390.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.4914, allocations: 166.5 kB / 390.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.4914, allocations: 0 / 390.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003552/0.4918, allocations: 127.5 kB / 390.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 2.474e-06/0.4918, allocations: 0 / 390.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.0008635/0.4927, allocations: 243.1 kB / 390.8 MB, free: 10.28 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.4927, allocations: 55.41 kB / 390.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004087/0.4932, allocations: 231.2 kB / 391 MB, free: 9.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.988e-05/0.4932, allocations: 25.7 kB / 391.1 MB, free: 9.949 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.4934, allocations: 144.3 kB / 391.2 MB, free: 9.805 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.249e-05/0.4935, allocations: 67.09 kB / 391.3 MB, free: 9.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.076e-05/0.4935, allocations: 11.94 kB / 391.3 MB, free: 9.727 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.4937, allocations: 330.8 kB / 391.6 MB, free: 9.395 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002589/0.4939, allocations: 72.2 kB / 391.7 MB, free: 9.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.4942, allocations: 107.8 kB / 391.8 MB, free: 9.203 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.4946, allocations: 114.8 kB / 391.9 MB, free: 9.086 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.4946, allocations: 0 / 391.9 MB, free: 9.086 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007823/0.4954, allocations: 297.3 kB / 392.2 MB, free: 8.785 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.367e-05/0.4954, allocations: 33.7 kB / 392.2 MB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.4955, allocations: 0 / 392.2 MB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.4955, allocations: 0 / 392.2 MB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.4959, allocations: 51.91 kB / 392.3 MB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4959, allocations: 0 / 392.3 MB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.4962, allocations: 31.77 kB / 392.3 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.4962, allocations: 12 kB / 392.3 MB, free: 8.652 MB / 330.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.0002301/0.4964, allocations: 148.6 kB / 392.5 MB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.894e-05/0.4965, allocations: 27.67 kB / 392.5 MB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006667/0.4972, allocations: 219 kB / 392.7 MB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.4972, allocations: 4 kB / 392.7 MB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.4972, allocations: 0 / 392.7 MB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.4972, allocations: 3.938 kB / 392.7 MB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.4977, allocations: 293.5 kB / 393 MB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4977, allocations: 0 / 393 MB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000366/0.4981, allocations: 43.97 kB / 393 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.4981, allocations: 7.953 kB / 393 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.4982, allocations: 4 kB / 393 MB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4982, allocations: 0 / 393 MB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.4982, allocations: 0 / 393 MB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008638/0.499, allocations: 311.6 kB / 393.3 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/0.4992, allocations: 120.8 kB / 393.5 MB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.936e-05/0.4993, allocations: 11.95 kB / 393.5 MB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.4995, allocations: 8.062 kB / 393.5 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.082e-05/0.4996, allocations: 19.97 kB / 393.5 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.4996, allocations: 4 kB / 393.5 MB, free: 7.352 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002721/0.4999, allocations: 185.6 kB / 393.7 MB, free: 7.172 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4999, allocations: 3.938 kB / 393.7 MB, free: 7.168 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004327/0.5003, allocations: 75.83 kB / 393.8 MB, free: 7.094 MB / 330.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.002252/0.5026, allocations: 1.14 MB / 394.9 MB, free: 5.969 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006819/0.5033, allocations: 251.8 kB / 395.2 MB, free: 5.711 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.5033, allocations: 0 / 395.2 MB, free: 5.711 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002445/0.5036, allocations: 83.84 kB / 395.2 MB, free: 5.629 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/0.504, allocations: 40.34 kB / 395.3 MB, free: 5.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0022/0.5062, allocations: 1.413 MB / 396.7 MB, free: 4.109 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004169/0.5067, allocations: 0.7557 MB / 397.4 MB, free: 3.324 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002078/0.5069, allocations: 25.48 kB / 397.5 MB, free: 3.301 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.5071, allocations: 79.41 kB / 397.5 MB, free: 3.223 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5071, allocations: 0 / 397.5 MB, free: 3.223 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02932/0.5364, allocations: 4.768 MB / 402.3 MB, free: 14.45 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003529/0.5369, allocations: 225.3 kB / 402.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.696/3.233, allocations: 0 / 402.5 MB, free: 14.2 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat