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_QuasiStationary.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_QuasiStationary,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.567/1.567, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003554, allocations: 8 kB / 233.3 MB, free: 2.91 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07909/0.07948, allocations: 38.77 MB / 272.1 MB, free: 12.06 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3516/0.4311, allocations: 84.83 MB / 356.9 MB, free: 5.227 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003106/0.4315, allocations: 87.58 kB / 357 MB, free: 5.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1759/0.6074, allocations: 40.75 MB / 397.8 MB, free: 2.094 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.6075, allocations: 0 / 397.8 MB, free: 2.094 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001719/0.6077, allocations: 43.92 kB / 397.8 MB, free: 2.051 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.006034/0.6137, allocations: 1.748 MB / 399.6 MB, free: 244 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.862e-05/0.6138, allocations: 11.97 kB / 399.6 MB, free: 232 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008075/0.6146, allocations: 219.9 kB / 399.8 MB, free: 0 / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.6162, allocations: 257.8 kB / 400 MB, free: 15.74 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003803/0.62, allocations: 1.109 MB / 401.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.6202, allocations: 111.1 kB / 401.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000483/0.6207, allocations: 156 kB / 401.4 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004724/0.6254, allocations: 1.468 MB / 402.9 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.103e-05/0.6256, allocations: 8 kB / 402.9 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002537/0.6259, allocations: 71.92 kB / 403 MB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.344e-05/0.6259, allocations: 36 kB / 403 MB, free: 12.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003683/0.6296, allocations: 0.9825 MB / 404 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01516/0.6448, allocations: 6.667 MB / 410.6 MB, free: 4.656 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.6463, allocations: 416.6 kB / 411.1 MB, free: 4.242 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.305e-05/0.6463, allocations: 12.44 kB / 411.1 MB, free: 4.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007813/0.6471, allocations: 268.8 kB / 411.3 MB, free: 3.945 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 2.866e-06/0.6471, allocations: 3.938 kB / 411.3 MB, free: 3.941 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.005459/0.6526, allocations: 1.798 MB / 413.1 MB, free: 2.047 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.6528, allocations: 162.8 kB / 413.3 MB, free: 1.852 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002591/0.6554, allocations: 1.079 MB / 414.4 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.823e-05/0.6555, allocations: 37.7 kB / 414.4 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009293/0.6564, allocations: 0.8538 MB / 415.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002642/0.6567, allocations: 209.2 kB / 415.5 MB, free: 15.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.862e-05/0.6568, allocations: 20 kB / 415.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.657, allocations: 358.8 kB / 415.8 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000824/0.6578, allocations: 238.5 kB / 416.1 MB, free: 15.03 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.6592, allocations: 0.8112 MB / 416.9 MB, free: 13.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.6604, allocations: 399.6 kB / 417.3 MB, free: 13.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-05/0.6604, allocations: 8 kB / 417.3 MB, free: 13.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003588/0.664, allocations: 1.112 MB / 418.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.355e-05/0.6642, allocations: 38.8 kB / 418.4 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.395e-05/0.6642, allocations: 24.03 kB / 418.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003316/0.6645, allocations: 65.7 kB / 418.5 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.6662, allocations: 271.5 kB / 418.8 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/0.6688, allocations: 2.591 MB / 421.4 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002001/0.6709, allocations: 76.03 kB / 421.4 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.671, allocations: 59.98 kB / 421.5 MB, free: 9.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (148): * Single equations (assignments): 145 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009836/0.672, allocations: 353.3 kB / 421.8 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002745/0.6723, allocations: 130.4 kB / 422 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.6741, allocations: 0.5722 MB / 422.5 MB, free: 7.945 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.6741, allocations: 8 kB / 422.6 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.6741, allocations: 0 / 422.6 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.6742, allocations: 3.984 kB / 422.6 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004365/0.6785, allocations: 1.846 MB / 424.4 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.6786, allocations: 12.09 kB / 424.4 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008288/0.6794, allocations: 111.8 kB / 424.5 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002286/0.6797, allocations: 41.7 kB / 424.6 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.081e-05/0.6797, allocations: 19.98 kB / 424.6 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002553/0.6823, allocations: 2.556 MB / 427.1 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.6823, allocations: 7.938 kB / 427.1 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/0.6849, allocations: 1.132 MB / 428.3 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005931/0.6855, allocations: 251.5 kB / 428.5 MB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/0.6858, allocations: 19.94 kB / 428.5 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009247/0.6867, allocations: 35.92 kB / 428.6 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.6869, allocations: 55.86 kB / 428.6 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/0.6869, allocations: 20 kB / 428.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001776/0.6887, allocations: 0.7993 MB / 429.5 MB, free: 464 kB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6888, allocations: 8 kB / 429.5 MB, free: 456 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.00175/0.6905, allocations: 343.9 kB / 429.8 MB, free: 112 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * 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 (54): * Single equations (assignments): 50 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2735/0.964, allocations: 2.806 MB / 432.6 MB, free: 85.19 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002358/0.9664, allocations: 0.9391 MB / 433.5 MB, free: 84.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.9664, allocations: 1 kB / 433.5 MB, free: 84.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009463/0.9674, allocations: 470.1 kB / 434 MB, free: 84.69 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/0.9697, allocations: 308.6 kB / 434.3 MB, free: 84.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02099/0.9907, allocations: 20.77 MB / 455.1 MB, free: 68.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.9917, allocations: 1.208 MB / 456.3 MB, free: 67.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001101/0.9929, allocations: 0.5976 MB / 456.9 MB, free: 67.61 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.9929, allocations: 0 / 456.9 MB, free: 67.61 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.04/4.032, allocations: 37.85 MB / 494.7 MB, free: 57.46 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_QuasiStationary_res.mat does not exist to compare? outputFormat=mat