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_Start.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_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.71/1.71, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.000355, allocations: 8 kB / 233.3 MB, free: 0.832 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08031/0.0807, allocations: 38.77 MB / 272.1 MB, free: 9.977 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3588/0.4396, allocations: 83.56 MB / 355.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003387/0.44, allocations: 83.95 kB / 355.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09778/0.5378, allocations: 23.05 MB / 378.8 MB, free: 8.012 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5379, allocations: 0 / 378.8 MB, free: 8.012 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.459e-05/0.538, allocations: 16 kB / 378.8 MB, free: 7.996 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00279/0.5408, allocations: 1.083 MB / 379.9 MB, free: 6.859 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.5408, allocations: 12.03 kB / 379.9 MB, free: 6.848 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002599/0.5411, allocations: 130.8 kB / 380.1 MB, free: 6.711 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007014/0.5418, allocations: 146.6 kB / 380.2 MB, free: 6.566 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.5438, allocations: 0.6913 MB / 380.9 MB, free: 5.832 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.111e-05/0.5439, allocations: 66.16 kB / 380.9 MB, free: 5.766 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001877/0.5441, allocations: 76 kB / 381 MB, free: 5.691 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002151/0.5463, allocations: 0.7793 MB / 381.8 MB, free: 4.883 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.104e-05/0.5463, allocations: 3.906 kB / 381.8 MB, free: 4.879 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.5465, allocations: 36 kB / 381.8 MB, free: 4.844 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.787e-05/0.5465, allocations: 24 kB / 381.9 MB, free: 4.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.5483, allocations: 0.5192 MB / 382.4 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006751/0.555, allocations: 3.457 MB / 385.8 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007653/0.5559, allocations: 239.1 kB / 386.1 MB, free: 396 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.5559, allocations: 4 kB / 386.1 MB, free: 392 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/0.556, allocations: 38.5 kB / 386.1 MB, free: 344 kB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 3.476e-06/0.556, allocations: 0 / 386.1 MB, free: 344 kB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.003319/0.5593, allocations: 1.069 MB / 387.2 MB, free: 15.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.5594, allocations: 81.34 kB / 387.3 MB, free: 15.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/0.5607, allocations: 0.6246 MB / 387.9 MB, free: 14.46 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.463e-05/0.5608, allocations: 33.64 kB / 387.9 MB, free: 14.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004906/0.5613, allocations: 0.5162 MB / 388.4 MB, free: 13.9 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.5614, allocations: 114.5 kB / 388.6 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.5615, allocations: 12 kB / 388.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.5617, allocations: 338.6 kB / 388.9 MB, free: 13.44 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004974/0.5622, allocations: 125.2 kB / 389 MB, free: 13.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007287/0.5629, allocations: 426.2 kB / 389.4 MB, free: 12.76 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006247/0.5636, allocations: 212.5 kB / 389.6 MB, free: 12.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/0.5636, allocations: 4 kB / 389.6 MB, free: 12.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001627/0.5652, allocations: 0.5802 MB / 390.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.45e-05/0.5653, allocations: 12 kB / 390.2 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.5653, allocations: 8 kB / 390.2 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002087/0.5655, allocations: 32.86 kB / 390.3 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008466/0.5664, allocations: 152.1 kB / 390.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.5677, allocations: 1.292 MB / 391.7 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008039/0.5686, allocations: 44 kB / 391.8 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.009e-05/0.5686, allocations: 32 kB / 391.8 MB, free: 10.25 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005531/0.5692, allocations: 237.5 kB / 392 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.5694, allocations: 71.06 kB / 392.1 MB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001114/0.5705, allocations: 341.4 kB / 392.4 MB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.5705, allocations: 0 / 392.4 MB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.5705, allocations: 7.953 kB / 392.4 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.5705, allocations: 7.938 kB / 392.4 MB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002525/0.5731, allocations: 1.09 MB / 393.5 MB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.5731, allocations: 0 / 393.5 MB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005223/0.5736, allocations: 64.12 kB / 393.6 MB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001365/0.5738, allocations: 24.84 kB / 393.6 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.82e-05/0.5738, allocations: 8 kB / 393.6 MB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001278/0.5751, allocations: 1.28 MB / 394.9 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.5752, allocations: 7.938 kB / 394.9 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.5768, allocations: 0.6537 MB / 395.6 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003614/0.5772, allocations: 172.2 kB / 395.7 MB, free: 5.965 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.5773, allocations: 8 kB / 395.7 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/0.5778, allocations: 23.94 kB / 395.8 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.578, allocations: 23.97 kB / 395.8 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.578, allocations: 12 kB / 395.8 MB, free: 5.898 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001015/0.579, allocations: 483 kB / 396.3 MB, free: 5.434 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.579, allocations: 0 / 396.3 MB, free: 5.434 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00111/0.5802, allocations: 196 kB / 396.5 MB, free: 5.242 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00259/0.5828, allocations: 1.851 MB / 398.3 MB, free: 3.316 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.5842, allocations: 479.2 kB / 398.8 MB, free: 2.836 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.5842, allocations: 0 / 398.8 MB, free: 2.836 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005946/0.5848, allocations: 244.4 kB / 399 MB, free: 2.586 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.5862, allocations: 178.8 kB / 399.2 MB, free: 2.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01325/0.5995, allocations: 10.81 MB / 410 MB, free: 7.324 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007693/0.6003, allocations: 0.9608 MB / 411 MB, free: 6.332 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006211/0.6009, allocations: 307.3 kB / 411.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of SimCode: time 1.233e-06/0.6009, allocations: 0 / 411.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.968/3.569, allocations: 17.6 MB / 428.9 MB, free: 99.69 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_Start_res.mat does not exist to compare? outputFormat=mat