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_SinglePhase.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_SinglePhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005045/0.0005046, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1033, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4235/0.5269, allocations: 93.99 MB / 402.5 MB, free: 14.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/0.5272, allocations: 87.62 kB / 402.6 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1136/0.6409, allocations: 28.56 MB / 431.2 MB, free: 3.969 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.6409, allocations: 0 / 431.2 MB, free: 3.969 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.835e-05/0.641, allocations: 27.38 kB / 431.2 MB, free: 3.965 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003815/0.6449, allocations: 1.292 MB / 432.5 MB, free: 2.965 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.6449, allocations: 8.031 kB / 432.5 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004679/0.6454, allocations: 154.1 kB / 432.7 MB, free: 2.859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.6464, allocations: 190.3 kB / 432.8 MB, free: 2.672 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002482/0.6489, allocations: 0.8148 MB / 433.7 MB, free: 2.004 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.179e-05/0.6491, allocations: 69.38 kB / 433.7 MB, free: 1.965 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002326/0.6493, allocations: 98.25 kB / 433.8 MB, free: 1.902 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002552/0.6519, allocations: 0.9415 MB / 434.8 MB, free: 1.246 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.447e-05/0.652, allocations: 3.906 kB / 434.8 MB, free: 1.242 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001292/0.6521, allocations: 38.75 kB / 434.8 MB, free: 1.234 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.371e-05/0.6521, allocations: 27.94 kB / 434.8 MB, free: 1.207 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002076/0.6542, allocations: 0.6674 MB / 435.5 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009174/0.6634, allocations: 3.948 MB / 439.4 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.6647, allocations: 462.3 kB / 439.9 MB, free: 13.15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.444e-05/0.6648, allocations: 8 kB / 439.9 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.6648, allocations: 37.17 kB / 439.9 MB, free: 13.1 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.056e-06/0.6648, allocations: 0 / 439.9 MB, free: 13.1 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.004997/0.6699, allocations: 1.506 MB / 441.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.212e-05/0.67, allocations: 84.42 kB / 441.5 MB, free: 11.72 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001633/0.6716, allocations: 0.7127 MB / 442.2 MB, free: 11.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.6718, allocations: 36.33 kB / 442.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000501/0.6723, allocations: 0.5747 MB / 442.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.6725, allocations: 167.1 kB / 443 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/0.6726, allocations: 14.56 kB / 443 MB, free: 10.57 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.6728, allocations: 341.7 kB / 443.4 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006422/0.6734, allocations: 183.8 kB / 443.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008419/0.6743, allocations: 468.1 kB / 444 MB, free: 9.598 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007936/0.6751, allocations: 255.8 kB / 444.3 MB, free: 9.438 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.89e-05/0.6752, allocations: 4 kB / 444.3 MB, free: 9.434 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002218/0.6774, allocations: 0.7586 MB / 445 MB, free: 8.852 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.346e-05/0.6775, allocations: 8 kB / 445 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.6775, allocations: 11.94 kB / 445 MB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004184/0.6779, allocations: 85.3 kB / 445.1 MB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.679, allocations: 162.5 kB / 445.3 MB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003437/0.6824, allocations: 2.946 MB / 448.2 MB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.6836, allocations: 43.98 kB / 448.3 MB, free: 5.594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.6837, allocations: 35.44 kB / 448.3 MB, free: 5.566 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 (87): * Single equations (assignments): 85 * 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.0007392/0.6845, allocations: 259.8 kB / 448.6 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000268/0.6848, allocations: 92.12 kB / 448.6 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.6865, allocations: 0.5282 MB / 449.2 MB, free: 4.898 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.6865, allocations: 4 kB / 449.2 MB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.6866, allocations: 7.984 kB / 449.2 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.6866, allocations: 0 / 449.2 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003934/0.6905, allocations: 1.464 MB / 450.6 MB, free: 3.742 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.6906, allocations: 0 / 450.6 MB, free: 3.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006677/0.6913, allocations: 81.95 kB / 450.7 MB, free: 3.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003709/0.6917, allocations: 79.39 kB / 450.8 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.362e-05/0.6917, allocations: 14.83 kB / 450.8 MB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003394/0.6952, allocations: 2.917 MB / 453.7 MB, free: 432 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.6952, allocations: 0 / 453.7 MB, free: 432 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.6978, allocations: 0.9227 MB / 454.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005886/0.6984, allocations: 196 kB / 454.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.6986, allocations: 16 kB / 454.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007873/0.6994, allocations: 31.97 kB / 454.9 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.6996, allocations: 39.95 kB / 454.9 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.808e-05/0.6997, allocations: 19.95 kB / 455 MB, free: 15.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001292/0.701, allocations: 0.5381 MB / 455.5 MB, free: 14.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.795e-06/0.701, allocations: 0 / 455.5 MB, free: 14.56 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001698/0.7027, allocations: 247.9 kB / 455.7 MB, free: 14.32 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 (41): * Single equations (assignments): 39 * 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.003705/0.7065, allocations: 2.135 MB / 457.9 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002132/0.7086, allocations: 0.7348 MB / 458.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.7087, allocations: 3.938 kB / 458.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.7099, allocations: 477.6 kB / 459.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.7118, allocations: 202.3 kB / 459.3 MB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/0.7295, allocations: 11.68 MB / 471 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009018/0.7305, allocations: 1.032 MB / 472 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00092/0.7314, allocations: 391.3 kB / 472.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of SimCode: time 1.353e-06/0.7315, allocations: 0 / 472.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.329/4.06, allocations: 26 MB / 498.4 MB, free: 3.16 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_SinglePhase_res.mat does not exist to compare? outputFormat=mat