Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.88/1.88, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003538, allocations: 8 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08778/0.08817, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.389/0.4772, allocations: 89.33 MB / 361.4 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.4776, allocations: 87.39 kB / 361.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1314/0.609, allocations: 30.34 MB / 391.9 MB, free: 6.238 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6091, allocations: 4 kB / 391.9 MB, free: 6.234 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001016/0.6092, allocations: 24 kB / 391.9 MB, free: 6.211 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.004324/0.6135, allocations: 1.549 MB / 393.5 MB, free: 4.695 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.6136, allocations: 8.031 kB / 393.5 MB, free: 4.688 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003183/0.6139, allocations: 160.6 kB / 393.6 MB, free: 4.586 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008459/0.6148, allocations: 202.1 kB / 393.8 MB, free: 4.387 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002232/0.617, allocations: 0.8398 MB / 394.7 MB, free: 3.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.6172, allocations: 112.7 kB / 394.8 MB, free: 3.598 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002388/0.6175, allocations: 113.5 kB / 394.9 MB, free: 3.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002894/0.6204, allocations: 1.135 MB / 396 MB, free: 2.645 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.959e-05/0.6204, allocations: 3.906 kB / 396 MB, free: 2.641 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.6206, allocations: 47.25 kB / 396.1 MB, free: 2.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.861e-05/0.6207, allocations: 31.94 kB / 396.1 MB, free: 2.598 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002519/0.6232, allocations: 0.7758 MB / 396.9 MB, free: 2.074 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009317/0.6325, allocations: 3.922 MB / 400.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002684/0.6353, allocations: 0.6041 MB / 401.4 MB, free: 13.44 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.679e-05/0.6354, allocations: 12.56 kB / 401.4 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009942/0.6364, allocations: 303.4 kB / 401.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 4.208e-06/0.6364, allocations: 0 / 401.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.007842/0.6442, allocations: 2.113 MB / 403.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003349/0.6446, allocations: 479.2 kB / 404.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/0.6467, allocations: 0.9221 MB / 405.2 MB, free: 9.402 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.6468, allocations: 41.7 kB / 405.2 MB, free: 9.355 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007623/0.6476, allocations: 0.6388 MB / 405.9 MB, free: 8.707 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002968/0.6479, allocations: 240.6 kB / 406.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.947e-05/0.648, allocations: 27.94 kB / 406.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.6482, allocations: 341.9 kB / 406.5 MB, free: 8.102 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009458/0.6491, allocations: 254.5 kB / 406.7 MB, free: 7.852 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.6506, allocations: 0.7169 MB / 407.4 MB, free: 6.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.6518, allocations: 410.4 kB / 407.8 MB, free: 6.516 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.6518, allocations: 4 kB / 407.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003616/0.6554, allocations: 1.157 MB / 409 MB, free: 5.328 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.584e-05/0.6556, allocations: 71.39 kB / 409.1 MB, free: 5.246 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/0.6556, allocations: 12 kB / 409.1 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008835/0.6565, allocations: 165.7 kB / 409.3 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.6579, allocations: 211.6 kB / 409.5 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006787/0.6647, allocations: 3.598 MB / 413.1 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/0.6665, allocations: 88.05 kB / 413.1 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001929/0.6668, allocations: 44 kB / 413.2 MB, free: 0.8672 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.000917/0.6677, allocations: 293.5 kB / 413.5 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003495/0.668, allocations: 126.5 kB / 413.6 MB, free: 456 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/0.6708, allocations: 0.7309 MB / 414.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.6708, allocations: 7.953 kB / 414.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.6708, allocations: 8.125 kB / 414.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002176/0.673, allocations: 0.9569 MB / 415.3 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005192/0.6782, allocations: 1.797 MB / 417.1 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.6783, allocations: 4 kB / 417.1 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009743/0.6793, allocations: 107.9 kB / 417.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007355/0.68, allocations: 130.2 kB / 417.3 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-05/0.6801, allocations: 16 kB / 417.3 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005254/0.6854, allocations: 3.317 MB / 420.7 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.438e-06/0.6854, allocations: 7.984 kB / 420.7 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003562/0.689, allocations: 1.176 MB / 421.8 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008566/0.6899, allocations: 255.6 kB / 422.1 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003403/0.6903, allocations: 16.12 kB / 422.1 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.6914, allocations: 51.92 kB / 422.2 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002278/0.6917, allocations: 64.41 kB / 422.2 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.295e-05/0.6917, allocations: 20 kB / 422.2 MB, free: 7.207 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001686/0.6934, allocations: 0.6969 MB / 422.9 MB, free: 6.504 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6935, allocations: 0 / 422.9 MB, free: 6.504 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001862/0.6953, allocations: 352 kB / 423.3 MB, free: 6.16 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.004727/0.7001, allocations: 2.466 MB / 425.8 MB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003399/0.7035, allocations: 1.111 MB / 426.9 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.7036, allocations: 1.938 kB / 426.9 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.7053, allocations: 0.5594 MB / 427.4 MB, free: 1.863 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/0.708, allocations: 296.6 kB / 427.7 MB, free: 1.574 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.236/0.944, allocations: 11.35 MB / 439.1 MB, free: 84.65 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008785/0.945, allocations: 1.1 MB / 440.2 MB, free: 83.95 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001083/0.9461, allocations: 148.3 kB / 440.3 MB, free: 83.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008484/0.9469, allocations: 458.8 kB / 440.8 MB, free: 83.93 MB / 346.7 MB Notification: Performance of SimCode: time 9.62e-07/0.9469, allocations: 0 / 440.8 MB, free: 83.93 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08037/1.027, allocations: 28.83 MB / 469.6 MB, free: 80.05 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/1.028, allocations: 229 kB / 469.8 MB, free: 79.8 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.66/4.688, allocations: 7.938 kB / 469.8 MB, free: 79.8 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat