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.DCSE_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.DCSE_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.696/1.696, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003548, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08197/0.08236, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3585/0.4409, allocations: 88.1 MB / 360.2 MB, free: 2.043 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.4412, allocations: 83.58 kB / 360.3 MB, free: 1.996 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1197/0.5609, allocations: 28.22 MB / 388.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.561, allocations: 0 / 388.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.887e-05/0.5611, allocations: 20 kB / 388.5 MB, free: 10.15 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.003714/0.5648, allocations: 1.255 MB / 389.8 MB, free: 8.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.5649, allocations: 8.031 kB / 389.8 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003927/0.5653, allocations: 154.4 kB / 389.9 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/0.5664, allocations: 190.3 kB / 390.1 MB, free: 8.637 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002452/0.5688, allocations: 0.8051 MB / 390.9 MB, free: 7.957 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.441e-05/0.5689, allocations: 74.31 kB / 391 MB, free: 7.918 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.5692, allocations: 105.9 kB / 391.1 MB, free: 7.848 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00249/0.5717, allocations: 0.919 MB / 392 MB, free: 7.207 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.204e-05/0.5718, allocations: 7.984 kB / 392 MB, free: 7.199 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.5719, allocations: 41.69 kB / 392.1 MB, free: 7.191 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.163e-05/0.5719, allocations: 24 kB / 392.1 MB, free: 7.168 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.574, allocations: 0.6406 MB / 392.7 MB, free: 6.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008358/0.5824, allocations: 3.93 MB / 396.7 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.5835, allocations: 448.3 kB / 397.1 MB, free: 2.516 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.998e-05/0.5836, allocations: 7.938 kB / 397.1 MB, free: 2.508 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.5836, allocations: 42.55 kB / 397.2 MB, free: 2.457 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 3.356e-06/0.5836, allocations: 0 / 397.2 MB, free: 2.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.004447/0.5881, allocations: 1.449 MB / 398.6 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.5882, allocations: 81.55 kB / 398.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001475/0.5897, allocations: 0.6956 MB / 399.4 MB, free: 132 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.001e-05/0.5898, allocations: 37.64 kB / 399.4 MB, free: 88 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005162/0.5903, allocations: 0.559 MB / 400 MB, free: 15.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.5905, allocations: 173.6 kB / 400.1 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.5906, allocations: 12 kB / 400.2 MB, free: 15.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.5908, allocations: 342.8 kB / 400.5 MB, free: 14.99 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005722/0.5914, allocations: 169.9 kB / 400.7 MB, free: 14.83 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007769/0.5922, allocations: 464.1 kB / 401.1 MB, free: 14.24 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007149/0.5929, allocations: 252.6 kB / 401.4 MB, free: 14 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.5929, allocations: 0 / 401.4 MB, free: 14 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00206/0.595, allocations: 0.7278 MB / 402.1 MB, free: 13.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.595, allocations: 8.625 kB / 402.1 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.5951, allocations: 8 kB / 402.1 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004064/0.5955, allocations: 93.89 kB / 402.2 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009657/0.5965, allocations: 159.7 kB / 402.4 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/0.5997, allocations: 2.931 MB / 405.3 MB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.6008, allocations: 32 kB / 405.3 MB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.121e-05/0.6009, allocations: 36.16 kB / 405.3 MB, free: 9.719 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.0006701/0.6016, allocations: 261.6 kB / 405.6 MB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.6018, allocations: 86.97 kB / 405.7 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.6033, allocations: 0.5029 MB / 406.2 MB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.6034, allocations: 4 kB / 406.2 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.6034, allocations: 4 kB / 406.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.6034, allocations: 3.984 kB / 406.2 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/0.6069, allocations: 1.439 MB / 407.6 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.6069, allocations: 0 / 407.6 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006106/0.6075, allocations: 75.91 kB / 407.7 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003415/0.6079, allocations: 81.81 kB / 407.8 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.351e-05/0.6079, allocations: 12 kB / 407.8 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003123/0.6111, allocations: 2.911 MB / 410.7 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/0.6111, allocations: 3.938 kB / 410.7 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.6133, allocations: 0.8756 MB / 411.6 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004164/0.6137, allocations: 208 kB / 411.8 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001769/0.6139, allocations: 12.25 kB / 411.8 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006917/0.6146, allocations: 27.98 kB / 411.8 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.6148, allocations: 39.89 kB / 411.9 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.749e-05/0.6148, allocations: 12 kB / 411.9 MB, free: 2.684 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001105/0.616, allocations: 0.5342 MB / 412.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.616, allocations: 0 / 412.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001337/0.6173, allocations: 244 kB / 412.7 MB, free: 1.914 MB / 330.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.003024/0.6204, allocations: 2.106 MB / 414.8 MB, free: 15.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001843/0.6222, allocations: 0.7072 MB / 415.5 MB, free: 14.99 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.6223, allocations: 3.938 kB / 415.5 MB, free: 14.99 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.6234, allocations: 466.1 kB / 415.9 MB, free: 14.51 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/0.6251, allocations: 211.3 kB / 416.1 MB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/0.6406, allocations: 11.55 MB / 427.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008253/0.6415, allocations: 1.028 MB / 428.7 MB, free: 1.324 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007885/0.6423, allocations: 379.3 kB / 429.1 MB, free: 0.957 MB / 346.7 MB Notification: Performance of SimCode: time 9.91e-07/0.6423, allocations: 3.938 kB / 429.1 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.104/3.746, allocations: 25.48 MB / 454.6 MB, free: 93.76 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.DCSE_Start_res.mat does not exist to compare? outputFormat=mat