Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.609/1.609, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 12 kB / 233.4 MB, free: 164 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08119/0.08158, allocations: 38.77 MB / 272.1 MB, free: 9.305 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.4969, allocations: 112.4 MB / 384.5 MB, free: 2.078 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/0.4973, allocations: 87.95 kB / 384.6 MB, free: 1.992 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6802/1.178, allocations: 110.6 MB / 495.2 MB, free: 56.99 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.178, allocations: 0 / 495.2 MB, free: 56.99 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006394/1.178, allocations: 131.8 kB / 495.4 MB, free: 56.86 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: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.02304/1.201, allocations: 5.185 MB / 0.4888 GB, free: 51.6 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/1.201, allocations: 8.031 kB / 0.4888 GB, free: 51.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003172/1.205, allocations: 0.6944 MB / 0.4895 GB, free: 50.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005051/1.21, allocations: 0.7351 MB / 0.4902 GB, free: 50.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01458/1.224, allocations: 3.469 MB / 0.4936 GB, free: 46.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006364/1.225, allocations: 377.8 kB / 0.494 GB, free: 46.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002626/1.228, allocations: 495.8 kB / 0.4944 GB, free: 45.74 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02776/1.256, allocations: 6.403 MB / 0.5007 GB, free: 39.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003316/1.256, allocations: 11.89 kB / 0.5007 GB, free: 39.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001889/1.258, allocations: 208 kB / 0.5009 GB, free: 38.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003334/1.258, allocations: 217.8 kB / 0.5011 GB, free: 38.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02232/1.281, allocations: 5.024 MB / 0.506 GB, free: 33.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05467/1.335, allocations: 19.99 MB / 0.5255 GB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007071/1.342, allocations: 4.044 MB / 0.5295 GB, free: 8.832 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006014/1.343, allocations: 155 kB / 0.5296 GB, free: 8.664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/1.343, allocations: 56.56 kB / 0.5297 GB, free: 8.602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=215): time 6.202e-06/1.343, allocations: 0 / 0.5297 GB, free: 8.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=257): time 0.3287/1.672, allocations: 13.34 MB / 0.5427 GB, free: 53.9 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/1.672, allocations: 79.22 kB / 0.5428 GB, free: 53.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006485/1.678, allocations: 2.408 MB / 0.5451 GB, free: 53.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006448/1.679, allocations: 70.45 kB / 0.5452 GB, free: 53.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002155/1.681, allocations: 2.23 MB / 0.5474 GB, free: 52.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001263/1.683, allocations: 0.8789 MB / 0.5482 GB, free: 52.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003261/1.683, allocations: 61.12 kB / 0.5483 GB, free: 52.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002066/1.683, allocations: 431.7 kB / 0.5487 GB, free: 51.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003907/1.687, allocations: 1.418 MB / 0.5501 GB, free: 51.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004745/1.692, allocations: 2.247 MB / 0.5523 GB, free: 50.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005291/1.697, allocations: 1.813 MB / 0.5541 GB, free: 50.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.323e-05/1.697, allocations: 6.812 kB / 0.5541 GB, free: 50.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=394) (initialization): time 0.01634/1.714, allocations: 5.027 MB / 0.559 GB, free: 50.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.68e-05/1.714, allocations: 16.28 kB / 0.559 GB, free: 50.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.805e-05/1.714, allocations: 24.88 kB / 0.559 GB, free: 50.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004745/1.719, allocations: 0.9592 MB / 0.56 GB, free: 50.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00523/1.724, allocations: 0.6851 MB / 0.5606 GB, free: 50.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.022/1.746, allocations: 13.15 MB / 0.5735 GB, free: 43.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004178/1.75, allocations: 183.6 kB / 0.5736 GB, free: 43.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000639/1.751, allocations: 130.4 kB / 0.5738 GB, free: 43.85 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * 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 (339): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(6,72.2%) 22,(1,100.0%) 1,(4,93.8%) 16,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004618/1.756, allocations: 1.519 MB / 0.5753 GB, free: 43.72 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/1.757, allocations: 324.1 kB / 0.5756 GB, free: 43.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01249/1.769, allocations: 4.473 MB / 0.5799 GB, free: 41.94 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/1.769, allocations: 25.22 kB / 0.58 GB, free: 41.94 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.763e-05/1.769, allocations: 13.53 kB / 0.58 GB, free: 41.94 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.304e-05/1.769, allocations: 11.19 kB / 0.58 GB, free: 41.94 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02728/1.797, allocations: 9.804 MB / 0.5896 GB, free: 37.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.53e-05/1.797, allocations: 3.781 kB / 0.5896 GB, free: 37.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003396/1.8, allocations: 409.2 kB / 0.5899 GB, free: 37.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004426/1.805, allocations: 1.034 MB / 0.591 GB, free: 37.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003069/1.805, allocations: 64.86 kB / 0.591 GB, free: 37.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0241/1.829, allocations: 16.9 MB / 0.6075 GB, free: 24.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/1.829, allocations: 4.812 kB / 0.6075 GB, free: 24.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01637/1.845, allocations: 6.753 MB / 0.6141 GB, free: 21.36 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002551/1.848, allocations: 0.6817 MB / 0.6148 GB, free: 20.92 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008777/1.849, allocations: 63.97 kB / 0.6149 GB, free: 20.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003011/1.852, allocations: 145.8 kB / 0.615 GB, free: 20.85 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006399/1.853, allocations: 197.8 kB / 0.6152 GB, free: 20.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002447/1.853, allocations: 73.95 kB / 0.6153 GB, free: 20.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004016/1.857, allocations: 1.829 MB / 0.617 GB, free: 20.1 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.333e-06/1.857, allocations: 0 / 0.617 GB, free: 20.1 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005592/1.863, allocations: 1.024 MB / 0.618 GB, free: 19.99 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (197): * Single equations (assignments): 190 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 22,(4,93.8%) 16,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(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.01772/1.88, allocations: 8.647 MB / 0.6265 GB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01216/1.893, allocations: 4.61 MB / 0.631 GB, free: 9.203 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.893, allocations: 0 / 0.631 GB, free: 9.203 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008137/1.901, allocations: 2.993 MB / 0.6339 GB, free: 6.461 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006488/1.907, allocations: 0.7852 MB / 0.6347 GB, free: 5.852 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3702/2.278, allocations: 46.99 MB / 0.6806 GB, free: 80.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007597/2.285, allocations: 3.404 MB / 0.6839 GB, free: 80.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.005897/2.291, allocations: 0.6977 MB / 0.6846 GB, free: 79.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005793/2.297, allocations: 1.895 MB / 0.6864 GB, free: 79.98 MB / 378.7 MB Notification: Performance of SimCode: time 1.653e-06/2.297, allocations: 0 / 0.6864 GB, free: 79.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2029/2.5, allocations: 86.64 MB / 0.771 GB, free: 34.5 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/2.5, allocations: 222.7 kB / 0.7712 GB, free: 34.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.236/8.736, allocations: 0 / 0.7712 GB, free: 34.26 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat