Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.811/1.811, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005272/0.0005271, allocations: 8 kB / 233.4 MB, free: 172 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1011, allocations: 38.77 MB / 272.1 MB, free: 9.309 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3694/0.4706, allocations: 84.82 MB / 357 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/0.471, allocations: 87.94 kB / 357 MB, free: 13.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1863/0.6572, allocations: 40.76 MB / 397.8 MB, free: 4.453 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.6573, allocations: 0 / 397.8 MB, free: 4.453 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001416/0.6575, allocations: 35.98 kB / 397.8 MB, free: 4.418 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00594/0.6634, allocations: 1.751 MB / 399.6 MB, free: 2.602 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/0.6635, allocations: 11.97 kB / 399.6 MB, free: 2.59 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007955/0.6643, allocations: 227.8 kB / 399.8 MB, free: 2.355 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001324/0.6656, allocations: 257.6 kB / 400.1 MB, free: 2.102 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003686/0.6694, allocations: 1.105 MB / 401.2 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/0.6696, allocations: 115.1 kB / 401.3 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004284/0.67, allocations: 159.9 kB / 401.4 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004552/0.6746, allocations: 1.468 MB / 402.9 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.963e-05/0.6747, allocations: 4 kB / 402.9 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002149/0.6749, allocations: 68 kB / 403 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.036e-05/0.675, allocations: 39.94 kB / 403 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003527/0.6785, allocations: 0.9786 MB / 404 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/0.6931, allocations: 6.664 MB / 410.7 MB, free: 7.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.6945, allocations: 424.6 kB / 411.1 MB, free: 6.598 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.064e-05/0.6946, allocations: 8.422 kB / 411.1 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000765/0.6954, allocations: 268.8 kB / 411.3 MB, free: 6.305 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 5.791e-06/0.6954, allocations: 0 / 411.3 MB, free: 6.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=56): time 0.00553/0.701, allocations: 1.805 MB / 413.2 MB, free: 4.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.7011, allocations: 162.8 kB / 413.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002433/0.7036, allocations: 1.075 MB / 414.4 MB, free: 3.121 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.7037, allocations: 41.64 kB / 414.4 MB, free: 3.074 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001/0.7047, allocations: 0.8633 MB / 415.3 MB, free: 2.199 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002752/0.705, allocations: 205.2 kB / 415.5 MB, free: 1.996 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.225e-05/0.7051, allocations: 32 kB / 415.5 MB, free: 1.965 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.7053, allocations: 345.9 kB / 415.9 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008458/0.7062, allocations: 238.5 kB / 416.1 MB, free: 1.387 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001255/0.7074, allocations: 0.8112 MB / 416.9 MB, free: 308 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2567/0.9641, allocations: 394.2 kB / 417.3 MB, free: 87.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.181e-05/0.9642, allocations: 5.344 kB / 417.3 MB, free: 87.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003746/0.9679, allocations: 1.192 MB / 418.5 MB, free: 87.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.903e-05/0.9681, allocations: 41.59 kB / 418.5 MB, free: 87.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-05/0.9681, allocations: 21.06 kB / 418.5 MB, free: 87.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000349/0.9685, allocations: 66.19 kB / 418.6 MB, free: 87.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001716/0.9702, allocations: 269.5 kB / 418.9 MB, free: 87.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002141/0.9724, allocations: 2.59 MB / 421.5 MB, free: 84.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.9742, allocations: 73.33 kB / 421.5 MB, free: 84.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000183/0.9744, allocations: 62.05 kB / 421.6 MB, free: 84.77 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.001211/0.9756, allocations: 364.6 kB / 422 MB, free: 84.65 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003791/0.976, allocations: 132.6 kB / 422.1 MB, free: 84.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.978, allocations: 0.5611 MB / 422.6 MB, free: 84.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.9781, allocations: 5.875 kB / 422.7 MB, free: 84.56 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.9781, allocations: 3.984 kB / 422.7 MB, free: 84.56 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.9781, allocations: 7.781 kB / 422.7 MB, free: 84.56 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004783/0.9829, allocations: 1.856 MB / 424.5 MB, free: 84.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/0.983, allocations: 5.219 kB / 424.5 MB, free: 84.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00087/0.9839, allocations: 106.4 kB / 424.6 MB, free: 84.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002604/0.9841, allocations: 49.31 kB / 424.7 MB, free: 84.1 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.335e-05/0.9842, allocations: 16.56 kB / 424.7 MB, free: 84.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001954/0.9862, allocations: 2.563 MB / 427.3 MB, free: 81.6 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.9862, allocations: 5.391 kB / 427.3 MB, free: 81.6 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002478/0.9887, allocations: 1.132 MB / 428.4 MB, free: 81.04 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006754/0.9895, allocations: 249.1 kB / 428.6 MB, free: 80.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/0.9897, allocations: 18.17 kB / 428.7 MB, free: 80.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000958/0.9907, allocations: 33.89 kB / 428.7 MB, free: 80.89 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.9909, allocations: 60.88 kB / 428.7 MB, free: 80.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.642e-05/0.9909, allocations: 21.05 kB / 428.8 MB, free: 80.88 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00185/0.9928, allocations: 0.8003 MB / 429.6 MB, free: 80.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.9928, allocations: 0 / 429.6 MB, free: 80.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002106/0.995, allocations: 346.8 kB / 429.9 MB, free: 80.77 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.003355/0.9983, allocations: 2.818 MB / 432.7 MB, free: 78.74 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002426/1.001, allocations: 0.9367 MB / 433.7 MB, free: 78.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.457e-06/1.001, allocations: 1.375 kB / 433.7 MB, free: 78.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001163/1.002, allocations: 483.6 kB / 434.1 MB, free: 78.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002743/1.005, allocations: 311.7 kB / 434.4 MB, free: 78.19 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/1.028, allocations: 20.73 MB / 455.2 MB, free: 61.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008621/1.029, allocations: 1.209 MB / 456.4 MB, free: 60.88 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001263/1.03, allocations: 172.7 kB / 456.5 MB, free: 60.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/1.031, allocations: 0.5831 MB / 457.1 MB, free: 60.83 MB / 346.7 MB Notification: Performance of SimCode: time 1.242e-06/1.031, allocations: 4 kB / 457.1 MB, free: 60.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07943/1.111, allocations: 28.4 MB / 485.5 MB, free: 56.79 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/1.111, allocations: 222.5 kB / 485.8 MB, free: 56.55 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.548/4.659, allocations: 0 / 485.8 MB, free: 56.55 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat