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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001164/0.001164, allocations: 97.92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 201.6 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002442/0.0002443, allocations: 7.984 kB / 306.7 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1075, allocations: 51.5 MB / 358.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01043/0.118, allocations: 10.81 MB / 369 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2062/0.3242, allocations: 4.241 MB / 373.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002426/0.3267, allocations: 69.56 kB / 373.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002823/0.3295, allocations: 0.7815 MB / 374.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004286/0.3338, allocations: 1.145 MB / 375.3 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001948/0.3358, allocations: 0.6165 MB / 375.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005715/0.3415, allocations: 2.743 MB / 378.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003198/0.3447, allocations: 2.22 MB / 380.8 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002641/0.3474, allocations: 1.219 MB / 382.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002627/0.35, allocations: 1.443 MB / 383.5 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000566/0.3506, allocations: 199.1 kB / 383.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001581/0.3522, allocations: 389.8 kB / 384.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007581/0.353, allocations: 0.7088 MB / 384.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001153/0.3541, allocations: 0.7252 MB / 385.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006323/0.3605, allocations: 5.394 MB / 390.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3605, allocations: 0 / 390.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3605, allocations: 0 / 390.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001932/0.3607, allocations: 0 / 390.9 MB, free: 6.109 MB / 302.1 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.01246/0.3732, allocations: 3.701 MB / 394.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.3732, allocations: 8.25 kB / 394.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001466/0.3747, allocations: 449.8 kB / 395.1 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004736/0.3795, allocations: 0.8079 MB / 395.9 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005578/0.3851, allocations: 2.255 MB / 398.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.3853, allocations: 236.8 kB / 398.3 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000836/0.3862, allocations: 310.6 kB / 398.7 MB, free: 1.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007748/0.3939, allocations: 4.182 MB / 402.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.684e-05/0.394, allocations: 5.766 kB / 402.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000342/0.3944, allocations: 131.3 kB / 403 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001548/0.3945, allocations: 155.5 kB / 403.1 MB, free: 15.06 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007198/0.4017, allocations: 3.601 MB / 406.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02345/0.4252, allocations: 13.29 MB / 420 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00683/0.4321, allocations: 7.154 MB / 427.2 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00565/0.4378, allocations: 3.414 MB / 430.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.4378, allocations: 43.88 kB / 430.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 2.915e-06/0.4378, allocations: 0 / 430.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=133): time 0.01104/0.4489, allocations: 5.652 MB / 436.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.449, allocations: 72.7 kB / 436.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002428/0.4514, allocations: 1.651 MB / 438 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.271e-05/0.4515, allocations: 45.7 kB / 438 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.4525, allocations: 1.402 MB / 439.4 MB, free: 9.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.4529, allocations: 465.8 kB / 439.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.142e-05/0.453, allocations: 31.94 kB / 439.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.4532, allocations: 372.3 kB / 440.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.4543, allocations: 0.6793 MB / 441 MB, free: 7.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.4557, allocations: 1.119 MB / 442.1 MB, free: 6.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.457, allocations: 0.882 MB / 443 MB, free: 5.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.457, allocations: 7.953 kB / 443 MB, free: 5.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.003739/0.4608, allocations: 2.389 MB / 445.4 MB, free: 3.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.4608, allocations: 12 kB / 445.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/0.4609, allocations: 12 kB / 445.4 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006999/0.4616, allocations: 279.2 kB / 445.7 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.4629, allocations: 371.4 kB / 446 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00542/0.4684, allocations: 5.781 MB / 451.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.4698, allocations: 79.86 kB / 451.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.47, allocations: 71.98 kB / 452 MB, free: 12.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (186): * Single equations (assignments): 182 * 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%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002034/0.472, allocations: 1.009 MB / 453 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002999/0.4723, allocations: 181.8 kB / 453.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003782/0.4761, allocations: 2.244 MB / 455.4 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.4761, allocations: 12 kB / 455.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.4762, allocations: 8 kB / 455.4 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.4762, allocations: 7.969 kB / 455.4 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008147/0.4843, allocations: 5.05 MB / 460.5 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.4844, allocations: 4 kB / 460.5 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008251/0.4852, allocations: 196 kB / 460.7 MB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.4863, allocations: 447.2 kB / 461.1 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.662e-05/0.4864, allocations: 35.98 kB / 461.1 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.4967, allocations: 10.2 MB / 471.3 MB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.772e-06/0.4967, allocations: 7.953 kB / 471.3 MB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005324/0.5021, allocations: 3.313 MB / 474.7 MB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.5032, allocations: 414.7 kB / 475.1 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000239/0.5034, allocations: 40 kB / 475.1 MB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008481/0.5043, allocations: 71.94 kB / 475.2 MB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/0.5045, allocations: 103.2 kB / 475.3 MB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.5046, allocations: 43.98 kB / 475.3 MB, free: 3.688 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001808/0.5064, allocations: 1.131 MB / 476.4 MB, free: 2.562 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5064, allocations: 3.938 kB / 476.4 MB, free: 2.559 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002221/0.5087, allocations: 0.5548 MB / 477 MB, free: 2.004 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,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.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 (96): * Single equations (assignments): 91 * 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%) 5,(1,100.0%) 8,(1,100.0%) 1,(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.005821/0.5145, allocations: 4.515 MB / 481.5 MB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003596/0.5181, allocations: 2.172 MB / 483.7 MB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.5182, allocations: 0 / 483.7 MB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002439/0.5206, allocations: 1.593 MB / 485.3 MB, free: 9.469 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002621/0.5232, allocations: 487.5 kB / 485.8 MB, free: 9 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03798/0.5612, allocations: 24.9 MB / 0.4987 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/0.5634, allocations: 2.352 MB / 0.501 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001495/0.5649, allocations: 396 kB / 0.5014 GB, free: 12.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001353/0.5663, allocations: 1.105 MB / 0.5024 GB, free: 11.2 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5663, allocations: 0 / 0.5024 GB, free: 11.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3242/0.8905, allocations: 46.86 MB / 0.5482 GB, free: 140.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/0.8907, allocations: 247.6 kB / 0.5484 GB, free: 140.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.903/3.793, allocations: 2.672 kB / 0.5484 GB, free: 140.1 MB / 446.1 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