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_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.799/1.799, allocations: 171.1 MB / 186.1 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.0003643, allocations: 12 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08448/0.08489, allocations: 38.76 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3935/0.4784, allocations: 85.14 MB / 357.3 MB, free: 4.016 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/0.4788, allocations: 86.39 kB / 357.4 MB, free: 3.969 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.187/0.6658, allocations: 42.85 MB / 400.2 MB, free: 14.97 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.6659, allocations: 4 kB / 400.2 MB, free: 14.97 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001417/0.666, allocations: 32 kB / 400.2 MB, free: 14.94 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.006533/0.6726, allocations: 1.829 MB / 402.1 MB, free: 13.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/0.6726, allocations: 8.031 kB / 402.1 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008539/0.6735, allocations: 231.8 kB / 402.3 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001612/0.6751, allocations: 293.7 kB / 402.6 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004229/0.6794, allocations: 1.2 MB / 403.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.6796, allocations: 115.1 kB / 403.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003871/0.68, allocations: 163.9 kB / 404.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004429/0.6844, allocations: 1.492 MB / 405.6 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.72e-05/0.6845, allocations: 19.83 kB / 405.6 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002142/0.6848, allocations: 60 kB / 405.6 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.948e-05/0.6848, allocations: 40 kB / 405.7 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004243/0.6891, allocations: 1.084 MB / 406.8 MB, free: 8.223 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01583/0.705, allocations: 6.416 MB / 413.2 MB, free: 1.496 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0026/0.7076, allocations: 0.6505 MB / 413.8 MB, free: 0.832 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.146e-05/0.7078, allocations: 8.562 kB / 413.8 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.7078, allocations: 47.02 kB / 413.9 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 4.108e-06/0.7078, allocations: 0 / 413.9 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.009259/0.7171, allocations: 2.51 MB / 416.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.295e-05/0.7172, allocations: 115.5 kB / 416.5 MB, free: 14.03 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002928/0.7202, allocations: 1.092 MB / 417.6 MB, free: 12.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001746/0.7204, allocations: 37.7 kB / 417.6 MB, free: 12.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.7214, allocations: 0.8687 MB / 418.5 MB, free: 12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004025/0.7219, allocations: 260.3 kB / 418.7 MB, free: 11.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.523e-05/0.7219, allocations: 24 kB / 418.8 MB, free: 11.72 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.7221, allocations: 349.8 kB / 419.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/0.7233, allocations: 310.5 kB / 419.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.7248, allocations: 0.7451 MB / 420.2 MB, free: 10.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.7263, allocations: 415 kB / 420.6 MB, free: 9.707 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.219e-05/0.7263, allocations: 4 kB / 420.6 MB, free: 9.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00473/0.731, allocations: 1.322 MB / 421.9 MB, free: 8.363 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.266e-05/0.7311, allocations: 12.59 kB / 421.9 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.277e-05/0.7312, allocations: 20 kB / 421.9 MB, free: 8.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008892/0.7321, allocations: 146.5 kB / 422.1 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/0.7339, allocations: 259.6 kB / 422.3 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006185/0.7402, allocations: 4.344 MB / 426.7 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.742, allocations: 59.89 kB / 426.7 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001959/0.7422, allocations: 52 kB / 426.8 MB, free: 3.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001083/0.7433, allocations: 365.7 kB / 427.1 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004329/0.7438, allocations: 142.3 kB / 427.3 MB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003256/0.7471, allocations: 0.8881 MB / 428.2 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.7471, allocations: 12 kB / 428.2 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.7471, allocations: 0 / 428.2 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.7472, allocations: 3.984 kB / 428.2 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2639/1.011, allocations: 2.369 MB / 430.5 MB, free: 85.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/1.011, allocations: 5.094 kB / 430.5 MB, free: 85.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/1.012, allocations: 133.7 kB / 430.7 MB, free: 85.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008145/1.013, allocations: 140.8 kB / 430.8 MB, free: 85.56 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/1.013, allocations: 19.06 kB / 430.8 MB, free: 85.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005799/1.019, allocations: 4.497 MB / 435.3 MB, free: 81.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.747e-06/1.019, allocations: 6.281 kB / 435.3 MB, free: 81.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004476/1.024, allocations: 1.566 MB / 436.9 MB, free: 81.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008642/1.025, allocations: 284.7 kB / 437.2 MB, free: 81.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002712/1.025, allocations: 20.56 kB / 437.2 MB, free: 81.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/1.026, allocations: 44.83 kB / 437.2 MB, free: 81.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/1.026, allocations: 69.25 kB / 437.3 MB, free: 81.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.707e-05/1.026, allocations: 24.83 kB / 437.3 MB, free: 81.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001954/1.028, allocations: 0.8288 MB / 438.2 MB, free: 81 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.028, allocations: 0 / 438.2 MB, free: 81 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002567/1.031, allocations: 375.8 kB / 438.5 MB, free: 81 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005822/1.037, allocations: 3.317 MB / 441.8 MB, free: 79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003186/1.04, allocations: 1.16 MB / 443 MB, free: 78.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/1.04, allocations: 1 kB / 443 MB, free: 78.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001703/1.042, allocations: 0.7007 MB / 443.7 MB, free: 78.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002851/1.045, allocations: 333.3 kB / 444 MB, free: 78.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/1.071, allocations: 18.83 MB / 462.9 MB, free: 64.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009153/1.072, allocations: 1.249 MB / 464.1 MB, free: 63.88 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001365/1.074, allocations: 176.3 kB / 464.3 MB, free: 63.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/1.075, allocations: 0.6202 MB / 464.9 MB, free: 63.84 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/1.075, allocations: 0 / 464.9 MB, free: 63.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08413/1.159, allocations: 32.57 MB / 497.5 MB, free: 54.96 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002282/1.159, allocations: 228.5 kB / 497.7 MB, free: 54.71 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.793/4.953, allocations: 3.906 kB / 497.7 MB, free: 54.71 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_withLosses_res.mat does not exist to compare? outputFormat=mat