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.SynchronousInductionMachines.SMPM_Braking.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.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003501, allocations: 8 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3449, allocations: 44.5 MB / 308.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1851/0.5301, allocations: 104.9 MB / 413.4 MB, free: 3.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003524/0.5305, allocations: 91.95 kB / 413.5 MB, free: 3.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4564/0.9869, allocations: 54.85 MB / 468.4 MB, free: 57.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.987, allocations: 0 / 468.4 MB, free: 57.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002763/0.9873, allocations: 67.94 kB / 468.4 MB, free: 57.7 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: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.01027/0.9975, allocations: 2.965 MB / 471.4 MB, free: 54.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.9976, allocations: 12.03 kB / 471.4 MB, free: 54.66 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001375/0.999, allocations: 366.6 kB / 471.8 MB, free: 54.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/1, allocations: 356 kB / 472.1 MB, free: 53.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006507/1.007, allocations: 1.956 MB / 474.1 MB, free: 51.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002996/1.007, allocations: 185 kB / 474.3 MB, free: 51.74 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001322/1.009, allocations: 255.9 kB / 474.5 MB, free: 51.49 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009736/1.018, allocations: 3.383 MB / 477.9 MB, free: 47.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/1.019, allocations: 0 / 477.9 MB, free: 47.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003795/1.019, allocations: 108 kB / 478 MB, free: 47.83 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001385/1.019, allocations: 108.8 kB / 478.1 MB, free: 47.72 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007196/1.026, allocations: 2.791 MB / 480.9 MB, free: 44.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02423/1.051, allocations: 10.91 MB / 491.8 MB, free: 33.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004251/1.055, allocations: 2.481 MB / 494.3 MB, free: 31.06 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004161/1.055, allocations: 138.4 kB / 494.4 MB, free: 30.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/1.055, allocations: 47.86 kB / 494.5 MB, free: 30.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 4.789e-06/1.055, allocations: 3.938 kB / 494.5 MB, free: 30.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=150): time 0.02327/1.079, allocations: 7.306 MB / 0.49 GB, free: 23.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/1.079, allocations: 102.3 kB / 0.4901 GB, free: 23.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003154/1.082, allocations: 1.583 MB / 0.4917 GB, free: 21.72 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003209/1.082, allocations: 53.7 kB / 0.4917 GB, free: 21.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008697/1.083, allocations: 1.203 MB / 0.4929 GB, free: 20.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005193/1.084, allocations: 0.5045 MB / 0.4934 GB, free: 19.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/1.084, allocations: 32 kB / 0.4934 GB, free: 19.9 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/1.084, allocations: 373.9 kB / 0.4938 GB, free: 19.53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001953/1.086, allocations: 0.8628 MB / 0.4946 GB, free: 18.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/1.088, allocations: 1.302 MB / 0.4959 GB, free: 17.17 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002298/1.09, allocations: 1.041 MB / 0.4969 GB, free: 16.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/1.09, allocations: 4 kB / 0.4969 GB, free: 16.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.006786/1.097, allocations: 2.868 MB / 0.4997 GB, free: 13.24 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001097/1.098, allocations: 5.588 MB / 0.5052 GB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.025e-05/1.098, allocations: 12 kB / 0.5052 GB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002516/1.101, allocations: 0.6707 MB / 0.5058 GB, free: 6.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00259/1.104, allocations: 375.4 kB / 0.5062 GB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/1.117, allocations: 8.49 MB / 0.5145 GB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002583/1.12, allocations: 111.8 kB / 0.5146 GB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000257/1.12, allocations: 68 kB / 0.5146 GB, free: 13.03 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/1.12, allocations: 7.984 kB / 0.5147 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007191/1.127, allocations: 2.65 MB / 0.5172 GB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-05/1.127, allocations: 16 kB / 0.5173 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002681/1.13, allocations: 0.6711 MB / 0.5179 GB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002712/1.133, allocations: 363.5 kB / 0.5183 GB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0154/1.148, allocations: 8.488 MB / 0.5266 GB, free: 420 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00249/1.151, allocations: 103.9 kB / 0.5267 GB, free: 316 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002461/1.151, allocations: 75.98 kB / 0.5267 GB, free: 240 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002497/1.153, allocations: 0.9299 MB / 0.5276 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006858/1.154, allocations: 201.5 kB / 0.5278 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00747/1.162, allocations: 2.586 MB / 0.5303 GB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.353e-05/1.162, allocations: 16 kB / 0.5304 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/1.162, allocations: 4.875 kB / 0.5304 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.472e-05/1.162, allocations: 8.078 kB / 0.5304 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/1.177, allocations: 5.421 MB / 0.5357 GB, free: 6.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/1.177, allocations: 0 / 0.5357 GB, free: 6.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/1.179, allocations: 232 kB / 0.5359 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00305/1.182, allocations: 0.702 MB / 0.5366 GB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003306/1.183, allocations: 31.98 kB / 0.5366 GB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01747/1.2, allocations: 10.04 MB / 0.5464 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.2, allocations: 0 / 0.5464 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/1.211, allocations: 3.951 MB / 0.5503 GB, free: 7.316 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001878/1.213, allocations: 486.4 kB / 0.5507 GB, free: 6.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007113/1.213, allocations: 32 kB / 0.5508 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002185/1.216, allocations: 95.89 kB / 0.5509 GB, free: 6.695 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005339/1.216, allocations: 121 kB / 0.551 GB, free: 6.574 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/1.216, allocations: 47.98 kB / 0.551 GB, free: 6.527 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003398/1.22, allocations: 1.217 MB / 0.5522 GB, free: 5.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.22, allocations: 0 / 0.5522 GB, free: 5.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006073/1.226, allocations: 1.043 MB / 0.5532 GB, free: 4.277 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.2906/1.517, allocations: 5.394 MB / 0.5585 GB, free: 99.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00999/1.527, allocations: 4.548 MB / 0.5629 GB, free: 98.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/1.527, allocations: 0 / 0.5629 GB, free: 98.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003799/1.53, allocations: 1.752 MB / 0.5646 GB, free: 98.28 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004491/1.535, allocations: 0.5815 MB / 0.5652 GB, free: 98.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04406/1.579, allocations: 26.18 MB / 0.5908 GB, free: 83.58 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002435/1.582, allocations: 2.148 MB / 0.5929 GB, free: 82.83 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00318/1.585, allocations: 0.593 MB / 0.5935 GB, free: 82.78 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002146/1.587, allocations: 0.9884 MB / 0.5944 GB, free: 82.77 MB / 394.7 MB Notification: Performance of SimCode: time 1.353e-06/1.587, allocations: 4 kB / 0.5944 GB, free: 82.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.188/1.775, allocations: 62.44 MB / 0.6554 GB, free: 37.53 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002853/1.775, allocations: 257.9 kB / 0.6556 GB, free: 37.23 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.817/6.592, allocations: 4.062 kB / 0.6556 GB, free: 37.23 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat