Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004821/0.0004822, allocations: 8 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3252, allocations: 44.5 MB / 308.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2305/0.5557, allocations: 108.4 MB / 417 MB, free: 232 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003345/0.5561, allocations: 87.95 kB / 417 MB, free: 144 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5371/1.093, allocations: 58.22 MB / 475.3 MB, free: 51.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.093, allocations: 0 / 475.3 MB, free: 51.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003389/1.094, allocations: 83.88 kB / 475.4 MB, free: 51.46 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: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01221/1.106, allocations: 3.241 MB / 478.6 MB, free: 48.15 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/1.106, allocations: 8.031 kB / 478.6 MB, free: 48.14 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001677/1.108, allocations: 412.9 kB / 479 MB, free: 47.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002176/1.11, allocations: 399.5 kB / 479.4 MB, free: 47.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007902/1.118, allocations: 2.184 MB / 481.6 MB, free: 45.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002259/1.118, allocations: 213.7 kB / 481.8 MB, free: 44.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001109/1.119, allocations: 291.8 kB / 482.1 MB, free: 44.6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/1.13, allocations: 3.636 MB / 485.7 MB, free: 40.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000139/1.13, allocations: 8 kB / 485.7 MB, free: 40.81 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005159/1.13, allocations: 116 kB / 485.8 MB, free: 40.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000173/1.13, allocations: 137.5 kB / 486 MB, free: 40.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008284/1.139, allocations: 2.922 MB / 488.9 MB, free: 37.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02732/1.166, allocations: 11.64 MB / 0.4888 GB, free: 25.65 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0037/1.17, allocations: 1.951 MB / 0.4907 GB, free: 23.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004896/1.17, allocations: 223.5 kB / 0.4909 GB, free: 23.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/1.17, allocations: 47.88 kB / 0.491 GB, free: 23.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 4.639e-06/1.17, allocations: 0 / 0.491 GB, free: 23.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=148): time 0.02341/1.194, allocations: 7.458 MB / 0.4982 GB, free: 15.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/1.194, allocations: 76.66 kB / 0.4983 GB, free: 15.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003736/1.198, allocations: 1.726 MB / 0.5 GB, free: 13.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00038/1.198, allocations: 49.7 kB / 0.5 GB, free: 13.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/1.199, allocations: 1.401 MB / 0.5014 GB, free: 12.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006148/1.2, allocations: 0.5083 MB / 0.5019 GB, free: 11.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/1.2, allocations: 36 kB / 0.5019 GB, free: 11.83 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/1.2, allocations: 385.9 kB / 0.5023 GB, free: 11.45 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002034/1.202, allocations: 0.8745 MB / 0.5032 GB, free: 10.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/1.204, allocations: 1.411 MB / 0.5045 GB, free: 8.926 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002437/1.207, allocations: 1.107 MB / 0.5056 GB, free: 7.816 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.314e-05/1.207, allocations: 7.938 kB / 0.5056 GB, free: 7.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.007751/1.215, allocations: 3.035 MB / 0.5086 GB, free: 4.754 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/1.215, allocations: 14.5 kB / 0.5086 GB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-05/1.215, allocations: 16 kB / 0.5086 GB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002274/1.217, allocations: 0.5489 MB / 0.5092 GB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003178/1.22, allocations: 435.3 kB / 0.5096 GB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/1.232, allocations: 6.465 MB / 0.5159 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003002/1.235, allocations: 139.8 kB / 0.516 GB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003242/1.236, allocations: 79.98 kB / 0.5161 GB, free: 12.79 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (208): * Single equations (assignments): 205 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002682/1.238, allocations: 0.9109 MB / 0.517 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007218/1.239, allocations: 213.4 kB / 0.5172 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007882/1.247, allocations: 2.653 MB / 0.5198 GB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/1.247, allocations: 16 kB / 0.5198 GB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/1.247, allocations: 4 kB / 0.5198 GB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-05/1.247, allocations: 15.91 kB / 0.5198 GB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01739/1.264, allocations: 5.728 MB / 0.5254 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/1.265, allocations: 4 kB / 0.5254 GB, free: 3.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002293/1.267, allocations: 251.6 kB / 0.5257 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002872/1.27, allocations: 0.5841 MB / 0.5262 GB, free: 2.273 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002945/1.27, allocations: 35.98 kB / 0.5263 GB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01585/1.286, allocations: 8.223 MB / 0.5343 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/1.286, allocations: 4 kB / 0.5343 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01104/1.297, allocations: 4.031 MB / 0.5382 GB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001983/1.299, allocations: 490.3 kB / 0.5387 GB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005467/1.3, allocations: 35.92 kB / 0.5387 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002111/1.302, allocations: 103.8 kB / 0.5388 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000358/1.302, allocations: 105.2 kB / 0.5389 GB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001607/1.302, allocations: 40 kB / 0.539 GB, free: 4.652 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003386/1.306, allocations: 1.326 MB / 0.5403 GB, free: 3.305 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.306, allocations: 0 / 0.5403 GB, free: 3.305 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00334/1.309, allocations: 0.6094 MB / 0.5409 GB, free: 2.695 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (122): * Single equations (assignments): 119 * 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 {(5,76.0%) 20,(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.01212/1.321, allocations: 5.466 MB / 0.5462 GB, free: 13.13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00774/1.329, allocations: 2.629 MB / 0.5488 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/1.329, allocations: 0 / 0.5488 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004629/1.334, allocations: 1.604 MB / 0.5503 GB, free: 8.816 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00427/1.338, allocations: 487.6 kB / 0.5508 GB, free: 8.336 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3306/1.669, allocations: 29.13 MB / 0.5792 GB, free: 83.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002342/1.671, allocations: 2.264 MB / 0.5815 GB, free: 83.08 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002552/1.674, allocations: 0.5011 MB / 0.5819 GB, free: 83.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002022/1.676, allocations: 1.121 MB / 0.583 GB, free: 83.06 MB / 394.7 MB Notification: Performance of SimCode: time 1.253e-06/1.676, allocations: 0 / 0.583 GB, free: 83.06 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1347/1.81, allocations: 55.33 MB / 0.6371 GB, free: 55.39 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/1.811, allocations: 249.2 kB / 0.6373 GB, free: 55.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.524/6.335, allocations: 0 / 0.6373 GB, free: 55.14 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat