Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 194.9 MB / 211.1 MB, free: 8.758 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.0003539, allocations: 8 kB / 264.1 MB, free: 3.672 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3022, allocations: 44.51 MB / 308.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1707/0.4729, allocations: 89.94 MB / 398.5 MB, free: 2.719 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003253/0.4733, allocations: 83.95 kB / 398.6 MB, free: 2.637 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4314/0.9047, allocations: 40.6 MB / 439.2 MB, free: 84.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.31e-06/0.9048, allocations: 3.984 kB / 439.2 MB, free: 84.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000131/0.9049, allocations: 32 kB / 439.2 MB, free: 84.56 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00517/0.9101, allocations: 1.751 MB / 441 MB, free: 82.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.9102, allocations: 12.03 kB / 441 MB, free: 82.74 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006855/0.9109, allocations: 223.8 kB / 441.2 MB, free: 82.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00123/0.9121, allocations: 265.5 kB / 441.5 MB, free: 82.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00323/0.9154, allocations: 1.105 MB / 442.6 MB, free: 81.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.9155, allocations: 111.1 kB / 442.7 MB, free: 81.01 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003954/0.9159, allocations: 159.9 kB / 442.8 MB, free: 80.85 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004088/0.9201, allocations: 1.468 MB / 444.3 MB, free: 79.31 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.238e-05/0.9202, allocations: 11.91 kB / 444.3 MB, free: 79.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000193/0.9204, allocations: 60 kB / 444.4 MB, free: 79.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.538e-05/0.9204, allocations: 40 kB / 444.4 MB, free: 79.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003247/0.9237, allocations: 0.9863 MB / 445.4 MB, free: 78.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/0.9357, allocations: 6.66 MB / 452.1 MB, free: 71.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.937, allocations: 416.6 kB / 452.5 MB, free: 70.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.685e-05/0.9371, allocations: 4.438 kB / 452.5 MB, free: 70.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007045/0.9378, allocations: 272.8 kB / 452.7 MB, free: 70.53 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.206e-06/0.9378, allocations: 0 / 452.7 MB, free: 70.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=56): time 0.004832/0.9427, allocations: 1.801 MB / 454.6 MB, free: 68.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.395e-05/0.9428, allocations: 162.8 kB / 454.7 MB, free: 68.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/0.9449, allocations: 1.079 MB / 455.8 MB, free: 67.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.9451, allocations: 37.7 kB / 455.8 MB, free: 67.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007235/0.9458, allocations: 0.8666 MB / 456.7 MB, free: 66.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.9461, allocations: 205.7 kB / 456.9 MB, free: 66.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.9461, allocations: 24 kB / 456.9 MB, free: 66.22 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.854e-05/0.9462, allocations: 357.9 kB / 457.3 MB, free: 65.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007548/0.947, allocations: 238.5 kB / 457.5 MB, free: 65.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009897/0.948, allocations: 0.8074 MB / 458.3 MB, free: 64.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.9491, allocations: 407.6 kB / 458.7 MB, free: 64.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.471e-05/0.9491, allocations: 8 kB / 458.7 MB, free: 64.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003141/0.9523, allocations: 1.189 MB / 459.9 MB, free: 62.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.209e-05/0.9524, allocations: 41.7 kB / 459.9 MB, free: 62.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.957e-05/0.9524, allocations: 20 kB / 460 MB, free: 62.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003097/0.9528, allocations: 65.69 kB / 460 MB, free: 62.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.9543, allocations: 275.8 kB / 460.3 MB, free: 62.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/0.9564, allocations: 2.595 MB / 462.9 MB, free: 59.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/0.9581, allocations: 76.12 kB / 463 MB, free: 59.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/0.9583, allocations: 56 kB / 463 MB, free: 59.53 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009684/0.9593, allocations: 357.3 kB / 463.4 MB, free: 59.17 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003323/0.9597, allocations: 130.4 kB / 463.5 MB, free: 59.04 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001607/0.9613, allocations: 0.5673 MB / 464.1 MB, free: 58.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.9613, allocations: 4 kB / 464.1 MB, free: 58.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.9614, allocations: 4 kB / 464.1 MB, free: 58.45 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.9614, allocations: 11.92 kB / 464.1 MB, free: 58.44 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00427/0.9657, allocations: 1.854 MB / 465.9 MB, free: 56.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.9657, allocations: 3.984 kB / 465.9 MB, free: 56.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007952/0.9665, allocations: 107.8 kB / 466 MB, free: 56.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002277/0.9668, allocations: 54.12 kB / 466.1 MB, free: 56.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.396e-05/0.9668, allocations: 12 kB / 466.1 MB, free: 56.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001784/0.9686, allocations: 2.548 MB / 468.7 MB, free: 53.49 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/0.9687, allocations: 12.38 kB / 468.7 MB, free: 53.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.971, allocations: 1.128 MB / 469.8 MB, free: 52.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007106/0.9717, allocations: 255.5 kB / 470 MB, free: 51.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.9721, allocations: 16 kB / 470.1 MB, free: 51.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009976/0.9731, allocations: 35.97 kB / 470.1 MB, free: 51.85 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.9733, allocations: 63.77 kB / 470.2 MB, free: 51.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.256e-05/0.9733, allocations: 16 kB / 470.2 MB, free: 51.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001726/0.9751, allocations: 0.8032 MB / 471 MB, free: 50.97 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.9751, allocations: 0 / 471 MB, free: 50.97 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001884/0.977, allocations: 348 kB / 471.3 MB, free: 50.63 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003063/0.9801, allocations: 2.818 MB / 474.1 MB, free: 47.7 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002163/0.9823, allocations: 0.9296 MB / 475.1 MB, free: 46.74 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.9824, allocations: 0 / 475.1 MB, free: 46.74 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.9834, allocations: 489.8 kB / 475.5 MB, free: 46.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/0.9858, allocations: 302.9 kB / 475.8 MB, free: 45.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02093/1.007, allocations: 20.72 MB / 496.6 MB, free: 24.46 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007905/1.008, allocations: 1.209 MB / 497.8 MB, free: 23.23 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00116/1.009, allocations: 175.3 kB / 497.9 MB, free: 23.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/1.01, allocations: 0.5852 MB / 498.5 MB, free: 22.46 MB / 346.7 MB Notification: Performance of SimCode: time 1.793e-06/1.01, allocations: 0 / 498.5 MB, free: 22.46 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1589/1.169, allocations: 28.4 MB / 0.5146 GB, free: 10.07 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003594/1.169, allocations: 230.9 kB / 0.5148 GB, free: 9.816 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.62/4.789, allocations: 0 / 0.5148 GB, free: 9.816 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat