Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.916/1.916, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.00035, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09681/0.09719, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5174/0.6146, allocations: 124.6 MB / 433.1 MB, free: 14.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.615, allocations: 89.45 kB / 433.2 MB, free: 14.85 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.775/1.39, allocations: 123.5 MB / 0.5437 GB, free: 68.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.507e-06/1.39, allocations: 0 / 0.5437 GB, free: 68.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006246/1.391, allocations: 142.6 kB / 0.5438 GB, free: 68.57 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.02415/1.415, allocations: 5.604 MB / 0.5493 GB, free: 66.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/1.415, allocations: 11.72 kB / 0.5493 GB, free: 66.46 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003433/1.418, allocations: 0.7371 MB / 0.55 GB, free: 66.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007965/1.426, allocations: 1.006 MB / 0.551 GB, free: 66.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01734/1.444, allocations: 4.612 MB / 0.5555 GB, free: 65.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005804/1.444, allocations: 399.9 kB / 0.5559 GB, free: 65.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002433/1.447, allocations: 0.5295 MB / 0.5564 GB, free: 65.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/1.471, allocations: 6.917 MB / 0.5632 GB, free: 64.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003372/1.471, allocations: 3.875 kB / 0.5632 GB, free: 64.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001883/1.473, allocations: 225.4 kB / 0.5634 GB, free: 64.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003044/1.473, allocations: 254.5 kB / 0.5636 GB, free: 64.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01897/1.492, allocations: 5.576 MB / 0.5691 GB, free: 64.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05918/1.551, allocations: 22.43 MB / 0.591 GB, free: 56.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01278/1.564, allocations: 8.34 MB / 0.5991 GB, free: 49.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01487/1.579, allocations: 5.309 MB / 0.6043 GB, free: 47.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.202e-05/1.579, allocations: 58.28 kB / 0.6044 GB, free: 47.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=238): time 6.813e-06/1.579, allocations: 0 / 0.6044 GB, free: 47.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=266): time 0.04562/1.625, allocations: 13.01 MB / 0.6171 GB, free: 41.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/1.625, allocations: 81.22 kB / 0.6171 GB, free: 41.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006386/1.631, allocations: 2.734 MB / 0.6198 GB, free: 40.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006528/1.632, allocations: 72.14 kB / 0.6199 GB, free: 40.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001811/1.634, allocations: 2.28 MB / 0.6221 GB, free: 38.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001274/1.635, allocations: 0.9086 MB / 0.623 GB, free: 37.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/1.636, allocations: 65.12 kB / 0.6231 GB, free: 37.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002137/1.636, allocations: 442.5 kB / 0.6235 GB, free: 37.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003733/1.64, allocations: 1.425 MB / 0.6249 GB, free: 36.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004516/1.644, allocations: 2.38 MB / 0.6272 GB, free: 35.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004785/1.649, allocations: 1.846 MB / 0.629 GB, free: 34.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.514e-05/1.649, allocations: 7.938 kB / 0.629 GB, free: 34.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=423) (initialization): time 0.01301/1.662, allocations: 4.765 MB / 0.6337 GB, free: 31.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.282e-05/1.662, allocations: 16.62 kB / 0.6337 GB, free: 31.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-05/1.662, allocations: 35.56 kB / 0.6337 GB, free: 31.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002903/1.665, allocations: 0.7326 MB / 0.6344 GB, free: 30.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005834/1.671, allocations: 0.7726 MB / 0.6352 GB, free: 29.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0146/1.686, allocations: 10 MB / 0.645 GB, free: 20.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004868/1.691, allocations: 198.6 kB / 0.6451 GB, free: 19.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009374/1.692, allocations: 143.8 kB / 0.6453 GB, free: 19.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (386): * Single equations (assignments): 380 * 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: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005152/1.697, allocations: 1.572 MB / 0.6468 GB, free: 18.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/1.698, allocations: 351.7 kB / 0.6471 GB, free: 18.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01367/1.712, allocations: 4.463 MB / 0.6515 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.107e-05/1.712, allocations: 24 kB / 0.6515 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.574e-05/1.712, allocations: 12 kB / 0.6515 GB, free: 14.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.218e-05/1.712, allocations: 22.38 kB / 0.6516 GB, free: 14.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02706/1.739, allocations: 9.66 MB / 0.661 GB, free: 6.129 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.389e-05/1.739, allocations: 8 kB / 0.661 GB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003751/1.743, allocations: 434.3 kB / 0.6614 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004355/1.747, allocations: 0.9572 MB / 0.6624 GB, free: 4.992 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006425/1.748, allocations: 71.45 kB / 0.6624 GB, free: 4.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02623/1.774, allocations: 16.32 MB / 0.6784 GB, free: 4.918 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/1.774, allocations: 7.938 kB / 0.6784 GB, free: 4.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3369/2.111, allocations: 7.331 MB / 0.6855 GB, free: 74.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002926/2.114, allocations: 0.7403 MB / 0.6862 GB, free: 74.47 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/2.115, allocations: 60.5 kB / 0.6863 GB, free: 74.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003901/2.119, allocations: 157.3 kB / 0.6865 GB, free: 74.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008511/2.12, allocations: 202.8 kB / 0.6866 GB, free: 74.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002608/2.12, allocations: 74.38 kB / 0.6867 GB, free: 74.47 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005833/2.126, allocations: 2.073 MB / 0.6887 GB, free: 74.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.42e-07/2.126, allocations: 0 / 0.6887 GB, free: 74.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006805/2.133, allocations: 1.093 MB / 0.6898 GB, free: 74.33 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (209): * Single equations (assignments): 202 * 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 {(1,100.0%) 5,(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02013/2.153, allocations: 8.893 MB / 0.6985 GB, free: 71.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01173/2.165, allocations: 4.378 MB / 0.7028 GB, free: 70.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/2.165, allocations: 0 / 0.7028 GB, free: 70.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007562/2.173, allocations: 2.924 MB / 0.7056 GB, free: 69.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007586/2.18, allocations: 0.8632 MB / 0.7065 GB, free: 69.91 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08977/2.27, allocations: 51.92 MB / 0.7572 GB, free: 36.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006722/2.277, allocations: 3.443 MB / 0.7605 GB, free: 35.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005378/2.282, allocations: 2.121 MB / 0.7626 GB, free: 35.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.483e-06/2.282, allocations: 3.719 kB / 0.7626 GB, free: 35.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.113/7.395, allocations: 251.6 MB / 1.008 GB, free: 10.16 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat