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.DCSE_Start.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.DCSE_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.001/2.001, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003621/0.0003623, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09774/0.09814, allocations: 44.51 MB / 308.5 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4255/0.5237, allocations: 93.2 MB / 401.7 MB, free: 14.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.5241, allocations: 91.55 kB / 401.8 MB, free: 14.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1081/0.6322, allocations: 28.08 MB / 429.9 MB, free: 4.148 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.6323, allocations: 0 / 429.9 MB, free: 4.148 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.818e-05/0.6324, allocations: 18.72 kB / 429.9 MB, free: 4.148 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002992/0.6354, allocations: 1.267 MB / 431.2 MB, free: 3.277 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.6354, allocations: 7.75 kB / 431.2 MB, free: 3.277 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003353/0.6358, allocations: 149.4 kB / 431.4 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009462/0.6367, allocations: 188.9 kB / 431.5 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00232/0.6391, allocations: 0.8027 MB / 432.3 MB, free: 2.672 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.399e-05/0.6392, allocations: 70.91 kB / 432.4 MB, free: 2.672 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002113/0.6394, allocations: 102.9 kB / 432.5 MB, free: 2.668 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002456/0.6419, allocations: 0.92 MB / 433.4 MB, free: 2.227 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.725e-05/0.642, allocations: 7.891 kB / 433.4 MB, free: 2.219 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/0.6421, allocations: 43.81 kB / 433.5 MB, free: 2.207 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.332e-05/0.6422, allocations: 24 kB / 433.5 MB, free: 2.184 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002269/0.6445, allocations: 0.6442 MB / 434.2 MB, free: 1.766 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007926/0.6524, allocations: 3.912 MB / 438.1 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.6536, allocations: 455.3 kB / 438.5 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.054e-05/0.6537, allocations: 4 kB / 438.5 MB, free: 14.17 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.6537, allocations: 42.06 kB / 438.6 MB, free: 14.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 3.286e-06/0.6537, allocations: 0 / 438.6 MB, free: 14.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.004353/0.6581, allocations: 1.459 MB / 440 MB, free: 12.88 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/0.6582, allocations: 89.48 kB / 440.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001463/0.6597, allocations: 0.692 MB / 440.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.809e-05/0.6597, allocations: 35.77 kB / 440.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004613/0.6602, allocations: 0.5643 MB / 441.4 MB, free: 11.78 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.6604, allocations: 170.6 kB / 441.6 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.153e-05/0.6605, allocations: 15.75 kB / 441.6 MB, free: 11.64 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.6607, allocations: 346.1 kB / 441.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005593/0.6612, allocations: 171.2 kB / 442.1 MB, free: 11.19 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007833/0.662, allocations: 463 kB / 442.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007154/0.6628, allocations: 244.3 kB / 442.8 MB, free: 10.53 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.6628, allocations: 8 kB / 442.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001987/0.6648, allocations: 0.7198 MB / 443.5 MB, free: 9.969 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/0.6648, allocations: 12 kB / 443.5 MB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/0.6649, allocations: 8 kB / 443.5 MB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004192/0.6653, allocations: 93.12 kB / 443.6 MB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000959/0.6663, allocations: 155.7 kB / 443.8 MB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003341/0.6696, allocations: 2.931 MB / 446.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.6707, allocations: 39.45 kB / 446.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.599e-05/0.6708, allocations: 31.81 kB / 446.8 MB, free: 6.707 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006981/0.6715, allocations: 266 kB / 447 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.6717, allocations: 86.97 kB / 447.1 MB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.6732, allocations: 0.4955 MB / 447.6 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.6733, allocations: 4.047 kB / 447.6 MB, free: 6.062 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.6733, allocations: 7.984 kB / 447.6 MB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.6733, allocations: 7.922 kB / 447.6 MB, free: 6.047 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003422/0.6767, allocations: 1.43 MB / 449.1 MB, free: 4.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.6768, allocations: 4 kB / 449.1 MB, free: 4.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006082/0.6774, allocations: 70.41 kB / 449.1 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003359/0.6777, allocations: 76.55 kB / 449.2 MB, free: 4.793 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.236e-05/0.6778, allocations: 19.55 kB / 449.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003208/0.681, allocations: 2.902 MB / 452.1 MB, free: 1.801 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.6811, allocations: 8.094 kB / 452.1 MB, free: 1.793 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002256/0.6833, allocations: 0.8902 MB / 453 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004552/0.6838, allocations: 192.1 kB / 453.2 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001651/0.684, allocations: 8 kB / 453.2 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000705/0.6847, allocations: 39.97 kB / 453.3 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.6849, allocations: 31.95 kB / 453.3 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.6849, allocations: 12 kB / 453.3 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001192/0.6861, allocations: 0.5402 MB / 453.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6861, allocations: 0 / 453.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00143/0.6876, allocations: 240 kB / 454.1 MB, free: 15.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003169/0.6908, allocations: 2.102 MB / 456.2 MB, free: 13.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00192/0.6927, allocations: 0.7155 MB / 456.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.6927, allocations: 0 / 456.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.6938, allocations: 469.8 kB / 457.3 MB, free: 12.37 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001735/0.6956, allocations: 207.9 kB / 457.5 MB, free: 12.17 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0155/0.7111, allocations: 11.54 MB / 469.1 MB, free: 256 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008878/0.7121, allocations: 1.028 MB / 470.1 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008388/0.7129, allocations: 379.3 kB / 470.5 MB, free: 14.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.593e-06/0.713, allocations: 0 / 470.5 MB, free: 14.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.974/3.687, allocations: 25.5 MB / 496 MB, free: 5.32 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat