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.SynchronousInductionMachines.SMR_Inverter.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.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.578/1.578, allocations: 171.1 MB / 186.1 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.00035, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.09731, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3854/0.4828, allocations: 95.85 MB / 368 MB, free: 9.406 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/0.4832, allocations: 91.38 kB / 368.1 MB, free: 9.355 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2193/0.7025, allocations: 45.45 MB / 413.5 MB, free: 1.656 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.7025, allocations: 0 / 413.5 MB, free: 1.656 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002769/0.7028, allocations: 59.94 kB / 413.6 MB, free: 1.598 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: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.009372/0.7122, allocations: 2.453 MB / 416 MB, free: 15.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.7123, allocations: 8.031 kB / 416 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001378/0.7137, allocations: 316 kB / 416.4 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001518/0.7152, allocations: 296.8 kB / 416.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005354/0.7206, allocations: 1.498 MB / 418.1 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002578/0.7209, allocations: 156.2 kB / 418.3 MB, free: 12.74 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/0.722, allocations: 211.9 kB / 418.5 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009103/0.7311, allocations: 2.78 MB / 421.3 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.813e-05/0.7313, allocations: 3.938 kB / 421.3 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000368/0.7316, allocations: 88 kB / 421.4 MB, free: 9.523 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001645/0.7318, allocations: 96.17 kB / 421.5 MB, free: 9.426 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007968/0.7398, allocations: 2.226 MB / 423.7 MB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2558/0.9957, allocations: 8.54 MB / 432.2 MB, free: 80.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004342/1, allocations: 1.733 MB / 434 MB, free: 80.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004693/1.001, allocations: 140.5 kB / 434.1 MB, free: 80.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/1.001, allocations: 43.34 kB / 434.1 MB, free: 80.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=102): time 4.378e-06/1.001, allocations: 0 / 434.1 MB, free: 80.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.02818/1.029, allocations: 7.107 MB / 441.3 MB, free: 79.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/1.029, allocations: 64.44 kB / 441.3 MB, free: 79.01 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002881/1.032, allocations: 1.182 MB / 442.5 MB, free: 78.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003329/1.032, allocations: 46.7 kB / 442.5 MB, free: 78.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008707/1.033, allocations: 1.01 MB / 443.6 MB, free: 78.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006368/1.034, allocations: 437.1 kB / 444 MB, free: 78.26 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/1.034, allocations: 28.41 kB / 444 MB, free: 78.26 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/1.034, allocations: 368.2 kB / 444.4 MB, free: 77.95 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/1.036, allocations: 0.7411 MB / 445.1 MB, free: 77.95 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002434/1.039, allocations: 1.113 MB / 446.2 MB, free: 77.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002298/1.041, allocations: 0.9123 MB / 447.1 MB, free: 77.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.928e-05/1.041, allocations: 3.844 kB / 447.1 MB, free: 77.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.007006/1.048, allocations: 2.59 MB / 449.7 MB, free: 77.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/1.048, allocations: 10.34 kB / 449.7 MB, free: 77.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.897e-05/1.048, allocations: 10.59 kB / 449.7 MB, free: 77.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002396/1.051, allocations: 0.584 MB / 450.3 MB, free: 77.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/1.053, allocations: 331.4 kB / 450.7 MB, free: 77.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/1.064, allocations: 6.54 MB / 457.2 MB, free: 74.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/1.067, allocations: 106.9 kB / 457.3 MB, free: 74.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002605/1.067, allocations: 59.12 kB / 457.4 MB, free: 74.73 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (155): * Single equations (assignments): 152 * 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: 2 * 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 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001935/1.069, allocations: 0.6932 MB / 458 MB, free: 74.61 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005714/1.069, allocations: 157.8 kB / 458.2 MB, free: 74.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00679/1.076, allocations: 2.369 MB / 460.6 MB, free: 74.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/1.076, allocations: 11.72 kB / 460.6 MB, free: 74.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.416e-05/1.076, allocations: 3.875 kB / 460.6 MB, free: 74.21 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.712e-05/1.076, allocations: 10.7 kB / 460.6 MB, free: 74.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/1.09, allocations: 4.712 MB / 465.3 MB, free: 72.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.09, allocations: 7.703 kB / 465.3 MB, free: 72.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001698/1.091, allocations: 207.8 kB / 465.5 MB, free: 72.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002778/1.094, allocations: 0.6314 MB / 466.2 MB, free: 72.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000238/1.094, allocations: 33.94 kB / 466.2 MB, free: 72.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01295/1.107, allocations: 8.32 MB / 474.5 MB, free: 66.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/1.107, allocations: 3.844 kB / 474.5 MB, free: 66.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008367/1.116, allocations: 3.477 MB / 478 MB, free: 64.97 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/1.117, allocations: 387.4 kB / 478.4 MB, free: 64.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003606/1.118, allocations: 35.27 kB / 478.4 MB, free: 64.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/1.119, allocations: 91.81 kB / 478.5 MB, free: 64.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003455/1.119, allocations: 96.23 kB / 478.6 MB, free: 64.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/1.12, allocations: 37.39 kB / 478.6 MB, free: 64.65 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001925/1.122, allocations: 0.9074 MB / 479.5 MB, free: 64.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.122, allocations: 0.75 kB / 479.5 MB, free: 64.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002598/1.124, allocations: 0.5121 MB / 480 MB, free: 64.24 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.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 (95): * Single equations (assignments): 92 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009271/1.134, allocations: 4.696 MB / 484.7 MB, free: 61.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006141/1.14, allocations: 2.353 MB / 487.1 MB, free: 60.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/1.14, allocations: 3.938 kB / 487.1 MB, free: 60.71 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004076/1.144, allocations: 1.517 MB / 488.6 MB, free: 59.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003223/1.147, allocations: 362.5 kB / 489 MB, free: 59.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03452/1.182, allocations: 20.71 MB / 0.4977 GB, free: 41.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001833/1.184, allocations: 1.856 MB / 0.4995 GB, free: 40 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001841/1.185, allocations: 347.6 kB / 0.4999 GB, free: 39.76 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00169/1.187, allocations: 0.803 MB / 0.5007 GB, free: 39.03 MB / 346.7 MB Notification: Performance of SimCode: time 1.353e-06/1.187, allocations: 0 / 0.5007 GB, free: 39.03 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1446/1.332, allocations: 42.92 MB / 0.5426 GB, free: 0.7109 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002734/1.332, allocations: 241.8 kB / 0.5428 GB, free: 472 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.994/5.327, allocations: 3.938 kB / 0.5428 GB, free: 468 kB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat