Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001548/0.001548, allocations: 197 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.371/1.371, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009541/0.0009541, allocations: 91.36 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.326e-05/3.351e-05, allocations: 4 kB / 350.7 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1116, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3632/0.4749, allocations: 109.9 MB / 0.5 GB, free: 12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.4752, allocations: 93.5 kB / 0.5001 GB, free: 11.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4316/0.9068, allocations: 82.96 MB / 0.5812 GB, free: 73.97 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.9069, allocations: 0 / 0.5812 GB, free: 73.97 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001881/0.9071, allocations: 77.45 kB / 0.5812 GB, free: 73.96 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.008084/0.9152, allocations: 3.198 MB / 0.5844 GB, free: 72.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.9152, allocations: 17.77 kB / 0.5844 GB, free: 72.88 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008677/0.9161, allocations: 445.2 kB / 0.5848 GB, free: 72.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003905/0.92, allocations: 0.7249 MB / 0.5855 GB, free: 72.64 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007435/0.9275, allocations: 3.313 MB / 0.5887 GB, free: 72.13 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001864/0.9277, allocations: 235.1 kB / 0.589 GB, free: 72.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007649/0.9285, allocations: 313.7 kB / 0.5893 GB, free: 72.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006962/0.9354, allocations: 4.048 MB / 0.5932 GB, free: 71.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.473e-05/0.9356, allocations: 8.969 kB / 0.5932 GB, free: 71.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003029/0.9359, allocations: 132.2 kB / 0.5933 GB, free: 71.75 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.936, allocations: 145.2 kB / 0.5935 GB, free: 71.74 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005817/0.9418, allocations: 3.287 MB / 0.5967 GB, free: 71.71 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02291/0.9648, allocations: 13.31 MB / 0.6097 GB, free: 69.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006279/0.9711, allocations: 7.072 MB / 0.6166 GB, free: 63.59 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003574/0.9747, allocations: 1.671 MB / 0.6182 GB, free: 63.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009663/0.9844, allocations: 4.192 MB / 0.6223 GB, free: 62.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.9845, allocations: 55.05 kB / 0.6224 GB, free: 62.31 MB / 442.7 MB Notification: Performance of pre-optimization done (n=118): time 2.906e-06/0.9845, allocations: 4 kB / 0.6224 GB, free: 62.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=121): time 0.007287/0.9918, allocations: 3.934 MB / 0.6262 GB, free: 60.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.9919, allocations: 63.78 kB / 0.6263 GB, free: 60.13 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002403/0.9943, allocations: 1.483 MB / 0.6277 GB, free: 59.53 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000118/0.9944, allocations: 45.7 kB / 0.6278 GB, free: 59.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007748/0.9952, allocations: 1.418 MB / 0.6292 GB, free: 58.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003125/0.9955, allocations: 425.3 kB / 0.6296 GB, free: 58.08 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.944e-05/0.9956, allocations: 30.91 kB / 0.6296 GB, free: 58.05 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.9957, allocations: 370.1 kB / 0.6299 GB, free: 57.72 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009889/0.9967, allocations: 0.6136 MB / 0.6305 GB, free: 57.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.998, allocations: 1.068 MB / 0.6316 GB, free: 56.64 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.9991, allocations: 0.8126 MB / 0.6324 GB, free: 56.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/0.9992, allocations: 5.094 kB / 0.6324 GB, free: 56.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.004064/1.003, allocations: 2.297 MB / 0.6346 GB, free: 55.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/1.003, allocations: 11.88 kB / 0.6346 GB, free: 55.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.516e-05/1.003, allocations: 13.62 kB / 0.6347 GB, free: 55.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000805/1.004, allocations: 323 kB / 0.635 GB, free: 55.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/1.006, allocations: 345.9 kB / 0.6353 GB, free: 55.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004759/1.01, allocations: 6.092 MB / 0.6412 GB, free: 50.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/1.012, allocations: 79.41 kB / 0.6413 GB, free: 50.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/1.012, allocations: 69.66 kB / 0.6414 GB, free: 50.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 171 * 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 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003902/1.012, allocations: 205.9 kB / 0.6416 GB, free: 49.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000693/1.013, allocations: 179.3 kB / 0.6418 GB, free: 49.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003718/1.017, allocations: 2.122 MB / 0.6438 GB, free: 48.87 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/1.017, allocations: 11.5 kB / 0.6438 GB, free: 48.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/1.017, allocations: 10.41 kB / 0.6438 GB, free: 48.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/1.017, allocations: 7.547 kB / 0.6439 GB, free: 48.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007362/1.024, allocations: 4.818 MB / 0.6486 GB, free: 46.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/1.024, allocations: 3.969 kB / 0.6486 GB, free: 46.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007065/1.025, allocations: 161.9 kB / 0.6487 GB, free: 46.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/1.026, allocations: 495.1 kB / 0.6492 GB, free: 46.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.693e-05/1.026, allocations: 35.23 kB / 0.6492 GB, free: 46.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008046/1.034, allocations: 10.48 MB / 0.6595 GB, free: 37.76 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.034, allocations: 3.188 kB / 0.6595 GB, free: 37.76 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004343/1.039, allocations: 3.068 MB / 0.6625 GB, free: 36.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/1.04, allocations: 411 kB / 0.6628 GB, free: 35.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/1.04, allocations: 29.97 kB / 0.6629 GB, free: 35.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009427/1.041, allocations: 71.38 kB / 0.6629 GB, free: 35.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/1.042, allocations: 104.7 kB / 0.663 GB, free: 35.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.108e-05/1.042, allocations: 31.94 kB / 0.6631 GB, free: 35.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001647/1.043, allocations: 1.134 MB / 0.6642 GB, free: 35.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.064e-06/1.043, allocations: 0 / 0.6642 GB, free: 35.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002644/1.046, allocations: 0.5897 MB / 0.6648 GB, free: 35.24 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 76 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004505/1.05, allocations: 4.311 MB / 0.669 GB, free: 32.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002899/1.053, allocations: 2.043 MB / 0.671 GB, free: 31.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/1.053, allocations: 0 / 0.671 GB, free: 31.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/1.055, allocations: 1.495 MB / 0.6724 GB, free: 30.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002401/1.058, allocations: 494.7 kB / 0.6729 GB, free: 30.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009239/1.067, allocations: 5.247 MB / 0.678 GB, free: 28.15 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001551/1.068, allocations: 2.346 MB / 0.6803 GB, free: 27.07 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001319/1.07, allocations: 374 kB / 0.6807 GB, free: 27.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001108/1.071, allocations: 1.096 MB / 0.6817 GB, free: 26.11 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/1.071, allocations: 0 / 0.6817 GB, free: 26.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06912/1.14, allocations: 50.98 MB / 0.7315 GB, free: 15.6 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/1.14, allocations: 212.4 kB / 0.7317 GB, free: 15.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.44/4.58, allocations: 2.953 kB / 0.7317 GB, free: 15.38 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat