Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003456/0.0003452, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1044, allocations: 44.51 MB / 308.5 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4291/0.5336, allocations: 103.9 MB / 412.4 MB, free: 11.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/0.534, allocations: 91.52 kB / 412.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2551/0.7891, allocations: 49.66 MB / 462.2 MB, free: 9.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.7892, allocations: 4 kB / 462.2 MB, free: 9.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002743/0.7895, allocations: 63.92 kB / 462.2 MB, free: 9.098 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.01011/0.7996, allocations: 2.612 MB / 464.9 MB, free: 6.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.7997, allocations: 8.031 kB / 464.9 MB, free: 6.594 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001218/0.8009, allocations: 337 kB / 465.2 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001492/0.8024, allocations: 312.6 kB / 465.5 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00577/0.8082, allocations: 1.678 MB / 467.2 MB, free: 4.723 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.8085, allocations: 164.7 kB / 467.3 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000684/0.8092, allocations: 223.9 kB / 467.6 MB, free: 4.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008353/0.8175, allocations: 2.871 MB / 470.4 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001016/0.8177, allocations: 7.938 kB / 470.4 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005461/0.8183, allocations: 96 kB / 470.5 MB, free: 1.219 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001853/0.8185, allocations: 104.3 kB / 470.6 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00758/0.8261, allocations: 2.297 MB / 472.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02357/0.8497, allocations: 9.097 MB / 482 MB, free: 5.418 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003989/0.8537, allocations: 1.752 MB / 483.8 MB, free: 3.551 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004784/0.8542, allocations: 215.2 kB / 484 MB, free: 3.305 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.8543, allocations: 47.5 kB / 484 MB, free: 3.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=107): time 5.56e-06/0.8543, allocations: 3.984 kB / 484 MB, free: 3.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.02957/0.8839, allocations: 7.571 MB / 491.6 MB, free: 11.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.884, allocations: 72.67 kB / 491.7 MB, free: 11.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003227/0.8872, allocations: 1.346 MB / 493 MB, free: 10.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000304/0.8876, allocations: 45.7 kB / 493.1 MB, free: 10.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009974/0.8886, allocations: 1.03 MB / 494.1 MB, free: 9.016 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006991/0.8893, allocations: 465.3 kB / 494.6 MB, free: 8.555 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.8895, allocations: 28 kB / 494.6 MB, free: 8.527 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002223/0.8897, allocations: 370.8 kB / 494.9 MB, free: 8.156 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.8919, allocations: 0.7729 MB / 495.7 MB, free: 7.383 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002491/0.8944, allocations: 1.176 MB / 496.9 MB, free: 6.035 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00255/0.897, allocations: 0.9589 MB / 497.9 MB, free: 5.074 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.897, allocations: 4 kB / 497.9 MB, free: 5.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.007616/0.9047, allocations: 2.587 MB / 0.4887 GB, free: 2.465 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.921e-05/0.9047, allocations: 12.56 kB / 0.4887 GB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.213e-05/0.9048, allocations: 16 kB / 0.4887 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002544/0.9073, allocations: 0.5883 MB / 0.4893 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002621/0.91, allocations: 355.5 kB / 0.4897 GB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01385/0.9239, allocations: 6.905 MB / 0.4964 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002388/0.9263, allocations: 111.9 kB / 0.4965 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002328/0.9266, allocations: 71.98 kB / 0.4966 GB, free: 10.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 (168): * Single equations (assignments): 165 * 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%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002047/0.9286, allocations: 0.712 MB / 0.4973 GB, free: 9.418 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005918/0.9292, allocations: 169.9 kB / 0.4974 GB, free: 9.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007562/0.9368, allocations: 2.434 MB / 0.4998 GB, free: 6.797 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.48e-05/0.9369, allocations: 19.98 kB / 0.4998 GB, free: 6.777 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.9369, allocations: 4 kB / 0.4998 GB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-05/0.9369, allocations: 7.969 kB / 0.4998 GB, free: 6.766 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01529/0.9522, allocations: 4.959 MB / 0.5047 GB, free: 1.699 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.326e-05/0.9523, allocations: 4 kB / 0.5047 GB, free: 1.695 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001939/0.9543, allocations: 215.7 kB / 0.5049 GB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003078/0.9574, allocations: 0.6347 MB / 0.5055 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003006/0.9577, allocations: 43.97 kB / 0.5056 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02217/0.9799, allocations: 8.654 MB / 0.514 GB, free: 7.734 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-05/0.98, allocations: 4 kB / 0.514 GB, free: 7.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01456/0.9945, allocations: 3.627 MB / 0.5176 GB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002048/0.9967, allocations: 418.8 kB / 0.518 GB, free: 3.559 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006681/0.9974, allocations: 24 kB / 0.518 GB, free: 3.535 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002083/0.9995, allocations: 99.89 kB / 0.5181 GB, free: 3.438 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004419/1, allocations: 100.8 kB / 0.5182 GB, free: 3.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/1, allocations: 36.36 kB / 0.5182 GB, free: 3.305 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002653/1.003, allocations: 1.035 MB / 0.5192 GB, free: 2.273 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.9e-07/1.003, allocations: 0 / 0.5192 GB, free: 2.273 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00299/1.006, allocations: 0.5546 MB / 0.5198 GB, free: 1.719 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (101): * Single equations (assignments): 98 * 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%) 23,(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.2766/1.282, allocations: 5.033 MB / 0.5247 GB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006912/1.289, allocations: 2.426 MB / 0.527 GB, free: 106 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.289, allocations: 0 / 0.527 GB, free: 106 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004508/1.294, allocations: 1.553 MB / 0.5286 GB, free: 105.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003444/1.298, allocations: 421.3 kB / 0.529 GB, free: 105.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.039/1.337, allocations: 22.94 MB / 0.5514 GB, free: 92.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002495/1.339, allocations: 1.895 MB / 0.5532 GB, free: 91.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002007/1.341, allocations: 0.8901 MB / 0.5541 GB, free: 91.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/1.341, allocations: 0 / 0.5541 GB, free: 91.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.881/5.222, allocations: 72.37 MB / 0.6248 GB, free: 49.76 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat