Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001184, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 93.03 kB / 292.1 MB, free: 5.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.039e-05/4.079e-05, allocations: 8 kB / 350.7 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1262, allocations: 51.47 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3825/0.5088, allocations: 106.5 MB / 0.4967 GB, free: 15.35 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.5091, allocations: 88.25 kB / 0.4968 GB, free: 15.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.125/0.6342, allocations: 46.44 MB / 0.5421 GB, free: 2.039 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.6342, allocations: 3.938 kB / 0.5421 GB, free: 2.035 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000214/0.6344, allocations: 59.88 kB / 0.5422 GB, free: 1.977 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.006464/0.6409, allocations: 2.267 MB / 0.5444 GB, free: 15.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.641, allocations: 16.03 kB / 0.5444 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009163/0.6419, allocations: 312 kB / 0.5447 GB, free: 15.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.6432, allocations: 300.7 kB / 0.545 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003887/0.6471, allocations: 1.592 MB / 0.5466 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/0.6473, allocations: 160.2 kB / 0.5467 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006524/0.648, allocations: 208.7 kB / 0.5469 GB, free: 13.01 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006056/0.654, allocations: 2.703 MB / 0.5496 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.6542, allocations: 11.84 kB / 0.5496 GB, free: 10.15 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003875/0.6546, allocations: 91.98 kB / 0.5497 GB, free: 10.06 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/0.6547, allocations: 96.19 kB / 0.5497 GB, free: 9.965 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004396/0.6591, allocations: 2.121 MB / 0.5518 GB, free: 7.828 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01724/0.6764, allocations: 8.639 MB / 0.5603 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002661/0.6791, allocations: 1.686 MB / 0.5619 GB, free: 13.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/0.6805, allocations: 0.777 MB / 0.5627 GB, free: 12.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004181/0.6809, allocations: 219.1 kB / 0.5629 GB, free: 12.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.587e-05/0.681, allocations: 43.56 kB / 0.5629 GB, free: 12.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 3.757e-06/0.681, allocations: 0 / 0.5629 GB, free: 12.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.01529/0.6963, allocations: 5.991 MB / 0.5688 GB, free: 6.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.6964, allocations: 64.41 kB / 0.5688 GB, free: 5.945 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002905/0.6993, allocations: 1.23 MB / 0.57 GB, free: 4.707 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002076/0.6996, allocations: 49.7 kB / 0.5701 GB, free: 4.652 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008494/0.7004, allocations: 1.03 MB / 0.5711 GB, free: 3.609 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005063/0.7009, allocations: 445.6 kB / 0.5715 GB, free: 3.168 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.7011, allocations: 28 kB / 0.5715 GB, free: 3.141 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.7012, allocations: 365.9 kB / 0.5719 GB, free: 2.777 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.7024, allocations: 0.6951 MB / 0.5726 GB, free: 2.082 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.7039, allocations: 1.072 MB / 0.5736 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2786/0.9825, allocations: 0.872 MB / 0.5745 GB, free: 92.92 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.056e-05/0.9826, allocations: 2.25 kB / 0.5745 GB, free: 92.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.00504/0.9877, allocations: 2.513 MB / 0.5769 GB, free: 92.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.9877, allocations: 10.75 kB / 0.5769 GB, free: 92.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.9877, allocations: 11.94 kB / 0.5769 GB, free: 92.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.9891, allocations: 0.5781 MB / 0.5775 GB, free: 92.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.9904, allocations: 338.6 kB / 0.5778 GB, free: 92.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006811/0.9972, allocations: 6.327 MB / 0.584 GB, free: 90.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.9986, allocations: 110.6 kB / 0.5841 GB, free: 90.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.9987, allocations: 61.89 kB / 0.5842 GB, free: 90.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002494/0.999, allocations: 192 kB / 0.5843 GB, free: 90.19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.9992, allocations: 158.6 kB / 0.5845 GB, free: 90.19 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003888/1.003, allocations: 2.293 MB / 0.5867 GB, free: 90.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.318e-06/1.003, allocations: 14.44 kB / 0.5867 GB, free: 90.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/1.003, allocations: 6.594 kB / 0.5868 GB, free: 90.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/1.003, allocations: 10.27 kB / 0.5868 GB, free: 90.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007078/1.01, allocations: 4.72 MB / 0.5914 GB, free: 89.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/1.01, allocations: 0 / 0.5914 GB, free: 89.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008447/1.011, allocations: 215.4 kB / 0.5916 GB, free: 89.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/1.013, allocations: 0.6298 MB / 0.5922 GB, free: 89.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.513e-05/1.013, allocations: 37.06 kB / 0.5922 GB, free: 89.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007342/1.02, allocations: 8.048 MB / 0.6001 GB, free: 85.74 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.02, allocations: 6.625 kB / 0.6001 GB, free: 85.74 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004741/1.025, allocations: 3.428 MB / 0.6034 GB, free: 85.15 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/1.026, allocations: 400.2 kB / 0.6038 GB, free: 84.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002051/1.026, allocations: 27.72 kB / 0.6038 GB, free: 84.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009403/1.027, allocations: 104.7 kB / 0.6039 GB, free: 84.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002943/1.027, allocations: 99.84 kB / 0.604 GB, free: 84.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.011e-05/1.028, allocations: 35.39 kB / 0.6041 GB, free: 84.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001437/1.029, allocations: 0.9446 MB / 0.605 GB, free: 84.85 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.029, allocations: 0 / 0.605 GB, free: 84.85 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001704/1.031, allocations: 0.5261 MB / 0.6055 GB, free: 84.85 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * 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,75.0%) 22,(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.006029/1.037, allocations: 4.847 MB / 0.6102 GB, free: 82.72 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003909/1.041, allocations: 2.271 MB / 0.6125 GB, free: 81.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/1.041, allocations: 1.031 kB / 0.6125 GB, free: 81.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002448/1.043, allocations: 1.485 MB / 0.6139 GB, free: 81.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/1.045, allocations: 381.5 kB / 0.6143 GB, free: 80.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009648/1.055, allocations: 4.274 MB / 0.6185 GB, free: 79.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002044/1.057, allocations: 1.87 MB / 0.6203 GB, free: 78.31 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001584/1.059, allocations: 360.4 kB / 0.6206 GB, free: 78.27 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/1.06, allocations: 0.8233 MB / 0.6214 GB, free: 77.62 MB / 442.7 MB Notification: Performance of SimCode: time 1.132e-06/1.06, allocations: 0 / 0.6214 GB, free: 77.62 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08605/1.146, allocations: 44.52 MB / 0.6649 GB, free: 69.52 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001726/1.146, allocations: 197.8 kB / 0.6651 GB, free: 69.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.285/4.431, allocations: 4 kB / 0.6651 GB, free: 69.29 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat