Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.564/1.564, allocations: 171.1 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003639, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08007/0.08045, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3671/0.4476, allocations: 89.32 MB / 361.4 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.4479, allocations: 84.83 kB / 361.5 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1292/0.5772, allocations: 30.34 MB / 391.9 MB, free: 7.176 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5772, allocations: 0 / 391.9 MB, free: 7.176 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.716e-05/0.5773, allocations: 27.98 kB / 391.9 MB, free: 7.148 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004309/0.5817, allocations: 1.55 MB / 393.4 MB, free: 5.633 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.5817, allocations: 8.031 kB / 393.4 MB, free: 5.625 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004036/0.5821, allocations: 164.4 kB / 393.6 MB, free: 5.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008816/0.583, allocations: 202 kB / 393.8 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002472/0.5855, allocations: 0.8339 MB / 394.6 MB, free: 4.621 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/0.5858, allocations: 126.3 kB / 394.8 MB, free: 4.523 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000246/0.586, allocations: 107.2 kB / 394.9 MB, free: 4.453 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002896/0.5889, allocations: 1.13 MB / 396 MB, free: 3.582 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.211e-05/0.589, allocations: 7.906 kB / 396 MB, free: 3.574 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001476/0.5892, allocations: 51.92 kB / 396 MB, free: 3.559 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.635e-05/0.5892, allocations: 24 kB / 396.1 MB, free: 3.535 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002562/0.5918, allocations: 0.7793 MB / 396.8 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009483/0.6013, allocations: 3.918 MB / 400.8 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002738/0.6041, allocations: 0.597 MB / 401.4 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-05/0.6042, allocations: 12.55 kB / 401.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009716/0.6052, allocations: 303.5 kB / 401.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.226e-06/0.6052, allocations: 0 / 401.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.007639/0.6129, allocations: 2.121 MB / 403.8 MB, free: 11.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002369/0.6131, allocations: 475.2 kB / 404.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001993/0.6151, allocations: 0.9221 MB / 405.2 MB, free: 10.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001365/0.6153, allocations: 41.7 kB / 405.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006341/0.616, allocations: 0.6293 MB / 405.8 MB, free: 9.457 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/0.6163, allocations: 236.7 kB / 406.1 MB, free: 9.223 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.148e-05/0.6164, allocations: 20 kB / 406.1 MB, free: 9.203 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.6165, allocations: 350.7 kB / 406.4 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009365/0.6175, allocations: 254.5 kB / 406.7 MB, free: 8.602 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.6188, allocations: 0.7208 MB / 407.4 MB, free: 7.676 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.6201, allocations: 414.4 kB / 407.8 MB, free: 7.258 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.6201, allocations: 0 / 407.8 MB, free: 7.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003402/0.6235, allocations: 1.088 MB / 408.9 MB, free: 6.145 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.431e-05/0.6236, allocations: 67.41 kB / 409 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.696e-05/0.6237, allocations: 12 kB / 409 MB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009285/0.6246, allocations: 170.4 kB / 409.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/0.626, allocations: 211.6 kB / 409.4 MB, free: 5.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006394/0.6325, allocations: 3.599 MB / 413 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.6341, allocations: 76.09 kB / 413 MB, free: 1.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.6343, allocations: 51.98 kB / 413.1 MB, free: 1.688 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {5 10} Notification: Performance of prepare postOptimizeDAE: time 0.0008205/0.6351, allocations: 292.1 kB / 413.4 MB, free: 1.395 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/0.6354, allocations: 126.5 kB / 413.5 MB, free: 1.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002604/0.6381, allocations: 0.7386 MB / 414.2 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.6381, allocations: 11.89 kB / 414.2 MB, free: 0.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.6381, allocations: 0 / 414.2 MB, free: 0.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002157/0.6403, allocations: 0.9608 MB / 415.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005094/0.6454, allocations: 1.782 MB / 417 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.6455, allocations: 7.938 kB / 417 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009713/0.6465, allocations: 116.1 kB / 417.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007224/0.6472, allocations: 126.1 kB / 417.2 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.899e-05/0.6473, allocations: 20 kB / 417.2 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005132/0.6525, allocations: 3.318 MB / 420.6 MB, free: 9.703 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6525, allocations: 3.938 kB / 420.6 MB, free: 9.699 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003545/0.6561, allocations: 1.183 MB / 421.7 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007978/0.6569, allocations: 247.7 kB / 422 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002635/0.6572, allocations: 12 kB / 422 MB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.6583, allocations: 59.83 kB / 422.1 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.6585, allocations: 56.42 kB / 422.1 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.088e-05/0.6586, allocations: 23.98 kB / 422.1 MB, free: 8.031 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001587/0.6602, allocations: 0.693 MB / 422.8 MB, free: 7.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6602, allocations: 8 kB / 422.8 MB, free: 7.324 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001976/0.6622, allocations: 352 kB / 423.2 MB, free: 6.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004917/0.6671, allocations: 2.463 MB / 425.6 MB, free: 4.438 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00354/0.6707, allocations: 1.112 MB / 426.8 MB, free: 3.273 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/0.6708, allocations: 4 kB / 426.8 MB, free: 3.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.6725, allocations: 0.5523 MB / 427.3 MB, free: 2.691 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/0.6749, allocations: 300.3 kB / 427.6 MB, free: 2.395 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2473/0.9223, allocations: 11.39 MB / 439 MB, free: 85.17 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.9235, allocations: 1.103 MB / 440.1 MB, free: 84.46 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/0.925, allocations: 466.7 kB / 440.6 MB, free: 84.46 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/0.925, allocations: 4.609 kB / 440.6 MB, free: 84.46 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.202/4.127, allocations: 30.69 MB / 471.2 MB, free: 79.3 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat