Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.842/1.842, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003538, allocations: 15.98 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08979/0.09017, allocations: 44.5 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4015/0.4917, allocations: 90.28 MB / 398.8 MB, free: 14.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.4921, allocations: 85.41 kB / 398.9 MB, free: 14.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1904/0.6824, allocations: 44.51 MB / 443.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.6825, allocations: 0 / 443.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001555/0.6827, allocations: 32 kB / 443.5 MB, free: 10.24 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.006351/0.689, allocations: 1.835 MB / 445.3 MB, free: 8.488 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.6891, allocations: 12.02 kB / 445.3 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007463/0.6899, allocations: 223.4 kB / 445.5 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.6914, allocations: 281.5 kB / 445.8 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004356/0.6958, allocations: 1.209 MB / 447 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.696, allocations: 116.8 kB / 447.1 MB, free: 7.043 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005298/0.6966, allocations: 154 kB / 447.3 MB, free: 6.941 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00483/0.7014, allocations: 1.492 MB / 448.8 MB, free: 5.891 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.268e-05/0.7015, allocations: 11.84 kB / 448.8 MB, free: 5.879 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002137/0.7018, allocations: 68.83 kB / 448.8 MB, free: 5.859 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-05/0.7018, allocations: 36 kB / 448.9 MB, free: 5.824 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004827/0.7067, allocations: 1.068 MB / 449.9 MB, free: 5.117 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0157/0.7224, allocations: 6.419 MB / 456.4 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002826/0.7253, allocations: 0.6388 MB / 457 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.139e-05/0.7254, allocations: 8.562 kB / 457 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.7255, allocations: 35.12 kB / 457 MB, free: 13.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 3.316e-06/0.7255, allocations: 0 / 457 MB, free: 13.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.009014/0.7345, allocations: 2.494 MB / 459.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.002e-05/0.7346, allocations: 107.5 kB / 459.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/0.7373, allocations: 1.103 MB / 460.7 MB, free: 10.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001615/0.7375, allocations: 37.7 kB / 460.8 MB, free: 9.965 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008132/0.7383, allocations: 0.8348 MB / 461.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003474/0.7387, allocations: 263.9 kB / 461.9 MB, free: 8.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.302e-05/0.7388, allocations: 24 kB / 461.9 MB, free: 8.848 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.739, allocations: 354.8 kB / 462.2 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.7401, allocations: 298.5 kB / 462.5 MB, free: 8.199 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/0.7416, allocations: 0.7412 MB / 463.3 MB, free: 7.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.743, allocations: 419 kB / 463.7 MB, free: 6.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-05/0.743, allocations: 4 kB / 463.7 MB, free: 6.836 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003986/0.747, allocations: 1.218 MB / 464.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.221e-05/0.7471, allocations: 12 kB / 464.9 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.97e-05/0.7471, allocations: 12 kB / 464.9 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000842/0.748, allocations: 154.6 kB / 465.1 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/0.7497, allocations: 259.6 kB / 465.3 MB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005791/0.7555, allocations: 4.34 MB / 469.7 MB, free: 424 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.7573, allocations: 67.94 kB / 469.7 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001618/0.7575, allocations: 52 kB / 469.8 MB, free: 304 kB / 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.001091/0.7586, allocations: 361.4 kB / 470.1 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004275/0.759, allocations: 142.7 kB / 470.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.7623, allocations: 0.8764 MB / 471.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.528e-05/0.7624, allocations: 15.98 kB / 471.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.7624, allocations: 0 / 471.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.7624, allocations: 3.984 kB / 471.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007183/0.7696, allocations: 2.351 MB / 473.5 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.7697, allocations: 4 kB / 473.5 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/0.7709, allocations: 128.3 kB / 473.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008556/0.7717, allocations: 150.4 kB / 473.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.7719, allocations: 19.98 kB / 473.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006449/0.7783, allocations: 4.489 MB / 478.3 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.836e-06/0.7784, allocations: 7.953 kB / 478.3 MB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004594/0.783, allocations: 1.553 MB / 479.9 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009136/0.784, allocations: 279.4 kB / 480.1 MB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002937/0.7843, allocations: 20 kB / 480.2 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.7854, allocations: 43.97 kB / 480.2 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.7856, allocations: 60.38 kB / 480.3 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.827e-05/0.7857, allocations: 35.98 kB / 480.3 MB, free: 5.055 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002006/0.7877, allocations: 0.8273 MB / 481.1 MB, free: 4.227 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7878, allocations: 0 / 481.1 MB, free: 4.227 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002271/0.79, allocations: 376 kB / 481.5 MB, free: 3.859 MB / 362.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.005791/0.7959, allocations: 3.3 MB / 484.8 MB, free: 468 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.7991, allocations: 1.147 MB / 485.9 MB, free: 15.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.7992, allocations: 4 kB / 486 MB, free: 15.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001758/0.8009, allocations: 0.72 MB / 486.7 MB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002834/0.8038, allocations: 321 kB / 487 MB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03023/0.8341, allocations: 18.85 MB / 0.494 GB, free: 10.66 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/0.8353, allocations: 1.249 MB / 0.4952 GB, free: 9.379 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00144/0.8368, allocations: 0.6243 MB / 0.4958 GB, free: 8.754 MB / 394.7 MB Notification: Performance of SimCode: time 1.583e-06/0.8368, allocations: 0 / 0.4958 GB, free: 8.754 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.68/4.517, allocations: 47.22 MB / 0.5419 GB, free: 116.2 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat