Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_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.001076/0.001076, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 227.2 MB / 245 MB, free: 7.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009893/0.0009893, allocations: 96.5 kB / 297.3 MB, free: 6.168 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002254/0.0002256, allocations: 7.984 kB / 358 MB, free: 9.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2119, allocations: 51.48 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1219/0.3339, allocations: 103.3 MB / 0.5008 GB, free: 3.188 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/0.3342, allocations: 89.2 kB / 0.5009 GB, free: 3.102 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2814/0.6157, allocations: 40.43 MB / 0.5404 GB, free: 71.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.6157, allocations: 3.984 kB / 0.5404 GB, free: 71.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001145/0.6159, allocations: 51.88 kB / 0.5405 GB, free: 71.77 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.003687/0.6195, allocations: 2.154 MB / 0.5426 GB, free: 69.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.6196, allocations: 8.031 kB / 0.5426 GB, free: 69.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002922/0.6199, allocations: 274.1 kB / 0.5428 GB, free: 69.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005991/0.6205, allocations: 257.2 kB / 0.5431 GB, free: 69.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002322/0.6228, allocations: 1.355 MB / 0.5444 GB, free: 67.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.06e-05/0.6229, allocations: 139.6 kB / 0.5445 GB, free: 67.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000223/0.6232, allocations: 183.9 kB / 0.5447 GB, free: 67.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003129/0.6263, allocations: 2.34 MB / 0.547 GB, free: 64.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.859e-05/0.6264, allocations: 11.91 kB / 0.547 GB, free: 64.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001543/0.6265, allocations: 72 kB / 0.5471 GB, free: 64.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-05/0.6266, allocations: 91.5 kB / 0.5472 GB, free: 64.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002757/0.6294, allocations: 1.884 MB / 0.549 GB, free: 62.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009477/0.6389, allocations: 7.168 MB / 0.556 GB, free: 55.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.6405, allocations: 1.323 MB / 0.5573 GB, free: 54.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000275/0.6408, allocations: 134 kB / 0.5574 GB, free: 53.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.6408, allocations: 47.5 kB / 0.5575 GB, free: 53.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=90): time 2.725e-06/0.6408, allocations: 0 / 0.5575 GB, free: 53.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=113): time 0.01425/0.6551, allocations: 7.21 MB / 0.5645 GB, free: 46.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.6552, allocations: 64.41 kB / 0.5646 GB, free: 46.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001439/0.6566, allocations: 1.049 MB / 0.5656 GB, free: 45.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.374e-05/0.6567, allocations: 45.7 kB / 0.5656 GB, free: 45.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000444/0.6572, allocations: 0.8613 MB / 0.5665 GB, free: 44.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/0.6574, allocations: 394.3 kB / 0.5669 GB, free: 44.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.189e-05/0.6575, allocations: 28 kB / 0.5669 GB, free: 44.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.721e-05/0.6576, allocations: 357.9 kB / 0.5672 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008749/0.6585, allocations: 0.6779 MB / 0.5679 GB, free: 43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009803/0.6594, allocations: 0.9853 MB / 0.5688 GB, free: 41.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.6605, allocations: 0.8345 MB / 0.5697 GB, free: 41.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.6605, allocations: 4 kB / 0.5697 GB, free: 41.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003435/0.6639, allocations: 2.428 MB / 0.572 GB, free: 38.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.664, allocations: 8 kB / 0.572 GB, free: 38.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.664, allocations: 20.25 kB / 0.5721 GB, free: 38.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.6653, allocations: 0.6372 MB / 0.5727 GB, free: 37.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009155/0.6663, allocations: 279.6 kB / 0.5729 GB, free: 37.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005664/0.6719, allocations: 6.531 MB / 0.5793 GB, free: 30.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.673, allocations: 87.97 kB / 0.5794 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.148e-05/0.6731, allocations: 48 kB / 0.5795 GB, free: 30.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (133): * Single equations (assignments): 129 * 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: 2 * 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: 2 {(5,76.0%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001003/0.6742, allocations: 0.613 MB / 0.5801 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.6744, allocations: 142.3 kB / 0.5802 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003262/0.6776, allocations: 2.271 MB / 0.5824 GB, free: 27.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.6777, allocations: 12 kB / 0.5824 GB, free: 27.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.6777, allocations: 8 kB / 0.5824 GB, free: 27.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.6777, allocations: 7.938 kB / 0.5824 GB, free: 27.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00616/0.6838, allocations: 4.43 MB / 0.5868 GB, free: 23.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.6839, allocations: 4 kB / 0.5868 GB, free: 23.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007109/0.6846, allocations: 171.8 kB / 0.5869 GB, free: 22.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00168/0.6863, allocations: 0.7307 MB / 0.5876 GB, free: 22.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.6864, allocations: 35.98 kB / 0.5877 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00708/0.6935, allocations: 8.307 MB / 0.5958 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.6935, allocations: 4 kB / 0.5958 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004407/0.6979, allocations: 3.375 MB / 0.5991 GB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008156/0.6988, allocations: 359.3 kB / 0.5994 GB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/0.699, allocations: 27.98 kB / 0.5995 GB, free: 9.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007553/0.6997, allocations: 87.91 kB / 0.5995 GB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.7, allocations: 92.77 kB / 0.5996 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.081e-05/0.7, allocations: 35.98 kB / 0.5997 GB, free: 9.359 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009784/0.701, allocations: 0.811 MB / 0.6005 GB, free: 8.543 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.701, allocations: 0 / 0.6005 GB, free: 8.543 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001353/0.7024, allocations: 480 kB / 0.6009 GB, free: 8.074 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * 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 (83): * Single equations (assignments): 79 * 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: 3 * 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: 3 {(7,59.2%) 21,(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.004703/0.7071, allocations: 4.714 MB / 0.6055 GB, free: 3.258 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003105/0.7102, allocations: 2.311 MB / 0.6078 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.7102, allocations: 0 / 0.6078 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002206/0.7125, allocations: 1.606 MB / 0.6093 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.714, allocations: 349.6 kB / 0.6097 GB, free: 14.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01964/0.7337, allocations: 17.88 MB / 0.6271 GB, free: 12.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001277/0.735, allocations: 1.692 MB / 0.6288 GB, free: 10.73 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009727/0.736, allocations: 296.1 kB / 0.6291 GB, free: 10.44 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008153/0.7368, allocations: 0.6828 MB / 0.6297 GB, free: 9.754 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.7368, allocations: 0 / 0.6297 GB, free: 9.754 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06298/0.7998, allocations: 39.78 MB / 0.6686 GB, free: 2.348 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002051/0.8001, allocations: 225 kB / 0.6688 GB, free: 2.105 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.779/3.579, allocations: 0 / 0.6688 GB, free: 2.105 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat