Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.556/1.556, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003523, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07877/0.07915, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4076/0.4868, allocations: 112.4 MB / 384.5 MB, free: 9.801 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.4871, allocations: 90.56 kB / 384.6 MB, free: 9.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7097/1.197, allocations: 110.6 MB / 495.2 MB, free: 67.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.386e-06/1.197, allocations: 3.984 kB / 495.2 MB, free: 67.96 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004692/1.197, allocations: 135.8 kB / 495.3 MB, free: 67.83 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.02015/1.218, allocations: 5.183 MB / 0.4888 GB, free: 62.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/1.218, allocations: 12.02 kB / 0.4888 GB, free: 62.57 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003039/1.221, allocations: 0.6854 MB / 0.4895 GB, free: 61.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004974/1.226, allocations: 0.7339 MB / 0.4902 GB, free: 61.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/1.237, allocations: 3.477 MB / 0.4936 GB, free: 57.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004461/1.237, allocations: 372.9 kB / 0.4939 GB, free: 57.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002094/1.239, allocations: 490.7 kB / 0.4944 GB, free: 56.79 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02049/1.26, allocations: 6.404 MB / 0.5007 GB, free: 50.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002495/1.26, allocations: 15.91 kB / 0.5007 GB, free: 50.17 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001282/1.261, allocations: 212 kB / 0.5009 GB, free: 49.96 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002554/1.262, allocations: 221.8 kB / 0.5011 GB, free: 49.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01706/1.279, allocations: 5.024 MB / 0.506 GB, free: 44.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04915/1.328, allocations: 19.99 MB / 0.5255 GB, free: 24.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006921/1.335, allocations: 4.038 MB / 0.5295 GB, free: 20.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005296/1.335, allocations: 152.2 kB / 0.5296 GB, free: 19.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/1.335, allocations: 68.5 kB / 0.5297 GB, free: 19.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=215): time 4.539e-06/1.335, allocations: 0 / 0.5297 GB, free: 19.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=257): time 0.04773/1.383, allocations: 13.36 MB / 0.5427 GB, free: 6.199 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/1.383, allocations: 77.44 kB / 0.5428 GB, free: 6.109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005086/1.388, allocations: 2.406 MB / 0.5451 GB, free: 3.695 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005963/1.389, allocations: 65.7 kB / 0.5452 GB, free: 3.625 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001441/1.39, allocations: 2.086 MB / 0.5472 GB, free: 1.527 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001119/1.392, allocations: 0.8791 MB / 0.5481 GB, free: 0.6562 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/1.392, allocations: 64 kB / 0.5482 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001896/1.392, allocations: 433.2 kB / 0.5486 GB, free: 164 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2577/1.65, allocations: 1.413 MB / 0.55 GB, free: 61.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004849/1.655, allocations: 2.249 MB / 0.5521 GB, free: 60.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00439/1.659, allocations: 1.814 MB / 0.5539 GB, free: 60.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-05/1.659, allocations: 11.22 kB / 0.5539 GB, free: 60.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=394) (initialization): time 0.01383/1.673, allocations: 4.822 MB / 0.5586 GB, free: 60.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.181e-05/1.673, allocations: 16.03 kB / 0.5587 GB, free: 60.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.997e-05/1.673, allocations: 32.45 kB / 0.5587 GB, free: 60.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004148/1.677, allocations: 0.9611 MB / 0.5596 GB, free: 60.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005132/1.683, allocations: 0.678 MB / 0.5603 GB, free: 60.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0199/1.702, allocations: 13.15 MB / 0.5731 GB, free: 53.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0039/1.706, allocations: 182.2 kB / 0.5733 GB, free: 53.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/1.707, allocations: 128.4 kB / 0.5734 GB, free: 53.58 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.003828/1.711, allocations: 1.518 MB / 0.5749 GB, free: 53.46 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008996/1.711, allocations: 322.3 kB / 0.5752 GB, free: 53.46 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01128/1.723, allocations: 4.471 MB / 0.5796 GB, free: 53.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.809e-05/1.723, allocations: 27.97 kB / 0.5796 GB, free: 53.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/1.723, allocations: 17.02 kB / 0.5796 GB, free: 53.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.999e-05/1.723, allocations: 11.34 kB / 0.5796 GB, free: 53.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02356/1.746, allocations: 9.807 MB / 0.5892 GB, free: 49.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/1.747, allocations: 3.375 kB / 0.5892 GB, free: 49.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003056/1.75, allocations: 405.5 kB / 0.5896 GB, free: 49.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004175/1.754, allocations: 1.039 MB / 0.5906 GB, free: 49.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002558/1.754, allocations: 66.56 kB / 0.5907 GB, free: 48.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02332/1.777, allocations: 16.9 MB / 0.6072 GB, free: 36.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/1.777, allocations: 8.344 kB / 0.6072 GB, free: 36.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/1.792, allocations: 6.745 MB / 0.6138 GB, free: 33.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002113/1.795, allocations: 0.6931 MB / 0.6145 GB, free: 32.63 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000665/1.795, allocations: 55.03 kB / 0.6145 GB, free: 32.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00264/1.798, allocations: 146 kB / 0.6146 GB, free: 32.56 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006734/1.799, allocations: 199.6 kB / 0.6148 GB, free: 32.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002473/1.799, allocations: 73.67 kB / 0.6149 GB, free: 32.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003781/1.803, allocations: 1.828 MB / 0.6167 GB, free: 31.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.803, allocations: 0 / 0.6167 GB, free: 31.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004921/1.808, allocations: 1.03 MB / 0.6177 GB, free: 31.71 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.01551/1.823, allocations: 8.642 MB / 0.6261 GB, free: 24.95 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01062/1.834, allocations: 4.607 MB / 0.6306 GB, free: 20.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/1.834, allocations: 4.375 kB / 0.6306 GB, free: 20.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007071/1.841, allocations: 3.001 MB / 0.6336 GB, free: 17.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005363/1.846, allocations: 0.7737 MB / 0.6343 GB, free: 17.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0803/1.927, allocations: 46.56 MB / 0.6798 GB, free: 3.949 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0054/1.932, allocations: 3.341 MB / 0.6831 GB, free: 1.395 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2616/2.194, allocations: 1.962 MB / 0.685 GB, free: 86.22 MB / 378.7 MB Notification: Performance of SimCode: time 1.843e-06/2.194, allocations: 0 / 0.685 GB, free: 86.22 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.009/7.202, allocations: 245.5 MB / 0.9247 GB, free: 39.89 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat