Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 98.09 kB / 16.3 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 184.4 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 223.2 MB / 241.1 MB, free: 14.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002445, allocations: 4 kB / 300.8 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1156, allocations: 50.42 MB / 351.3 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01251/0.1281, allocations: 10.32 MB / 361.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008126/0.1363, allocations: 4.029 MB / 365.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001876/0.1382, allocations: 67.75 kB / 365.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002221/0.1405, allocations: 0.7579 MB / 366.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003509/0.144, allocations: 1.106 MB / 367.5 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001568/0.1456, allocations: 0.5869 MB / 368.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004493/0.1501, allocations: 2.653 MB / 370.8 MB, free: 132 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1968/0.3469, allocations: 2.222 MB / 373 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002204/0.3491, allocations: 1.203 MB / 374.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002399/0.3515, allocations: 1.438 MB / 375.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004715/0.352, allocations: 198 kB / 375.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001295/0.3533, allocations: 371 kB / 376.2 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007702/0.3541, allocations: 0.7033 MB / 376.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00102/0.3551, allocations: 0.7216 MB / 377.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006211/0.3614, allocations: 5.362 MB / 383 MB, free: 8.445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3614, allocations: 4.969 kB / 383 MB, free: 8.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3614, allocations: 0 / 383 MB, free: 8.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001806/0.3616, allocations: 0 / 383 MB, free: 8.441 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.01087/0.3725, allocations: 3.671 MB / 386.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.3725, allocations: 10.41 kB / 386.7 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001682/0.3742, allocations: 444.6 kB / 387.1 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005243/0.3795, allocations: 0.806 MB / 387.9 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005809/0.3853, allocations: 2.253 MB / 390.1 MB, free: 5.137 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002434/0.3856, allocations: 231.8 kB / 390.4 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001092/0.3867, allocations: 313.8 kB / 390.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/0.3972, allocations: 4.186 MB / 394.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.885e-05/0.3974, allocations: 1.188 kB / 394.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003727/0.3977, allocations: 128 kB / 395 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001468/0.3979, allocations: 149.1 kB / 395.1 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007208/0.4051, allocations: 3.607 MB / 398.7 MB, free: 2.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02364/0.4288, allocations: 13.19 MB / 411.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007554/0.4364, allocations: 6.893 MB / 418.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006192/0.4426, allocations: 3.181 MB / 422 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.4427, allocations: 47.88 kB / 422.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.186e-06/0.4427, allocations: 4 kB / 422.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=135): time 0.01185/0.4546, allocations: 5.782 MB / 427.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/0.4546, allocations: 68.72 kB / 427.9 MB, free: 5.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002498/0.4572, allocations: 1.638 MB / 429.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.4573, allocations: 53.7 kB / 429.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.4583, allocations: 1.379 MB / 431 MB, free: 1.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003876/0.4587, allocations: 469.8 kB / 431.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.157e-05/0.4588, allocations: 36 kB / 431.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.459, allocations: 373.9 kB / 431.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.4601, allocations: 0.687 MB / 432.5 MB, free: 452 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001423/0.4616, allocations: 1.132 MB / 433.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.463, allocations: 0.8985 MB / 434.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.463, allocations: 8 kB / 434.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003907/0.4669, allocations: 2.409 MB / 437 MB, free: 11.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.4669, allocations: 8 kB / 437 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.467, allocations: 16 kB / 437 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006737/0.4676, allocations: 272.7 kB / 437.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.4691, allocations: 375.4 kB / 437.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005511/0.4746, allocations: 5.754 MB / 443.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/0.4762, allocations: 84.05 kB / 443.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/0.4764, allocations: 64 kB / 443.5 MB, free: 4.816 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (188): * Single equations (assignments): 184 * 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.002677/0.4791, allocations: 0.997 MB / 444.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004156/0.4795, allocations: 181.8 kB / 444.7 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004007/0.4835, allocations: 2.264 MB / 447 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4835, allocations: 15.94 kB / 447 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.4836, allocations: 8 kB / 447 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.4836, allocations: 3.984 kB / 447 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008585/0.4922, allocations: 5.11 MB / 452.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.4922, allocations: 0 / 452.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008379/0.4931, allocations: 195.7 kB / 452.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/0.4942, allocations: 451.3 kB / 452.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.083e-05/0.4943, allocations: 39.98 kB / 452.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009157/0.5034, allocations: 10.19 MB / 463 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.5035, allocations: 4 kB / 463 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00517/0.5086, allocations: 3.34 MB / 466.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/0.5097, allocations: 418.7 kB / 466.7 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002503/0.51, allocations: 44 kB / 466.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000856/0.5108, allocations: 71.94 kB / 466.8 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002464/0.5111, allocations: 103.4 kB / 466.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.515e-05/0.5112, allocations: 43.98 kB / 467 MB, free: 12.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001854/0.513, allocations: 1.123 MB / 468.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.513, allocations: 0 / 468.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002147/0.5152, allocations: 0.547 MB / 468.6 MB, free: 10.68 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 (98): * Single equations (assignments): 93 * 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.00554/0.5207, allocations: 4.548 MB / 473.2 MB, free: 5.988 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003684/0.5244, allocations: 2.183 MB / 475.4 MB, free: 3.746 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.5245, allocations: 0.875 kB / 475.4 MB, free: 3.746 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002376/0.5269, allocations: 1.589 MB / 477 MB, free: 2.094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.5291, allocations: 470.2 kB / 477.4 MB, free: 1.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04088/0.57, allocations: 24.7 MB / 0.4904 GB, free: 7.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002194/0.5722, allocations: 2.344 MB / 0.4927 GB, free: 5.559 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001651/0.5739, allocations: 396.9 kB / 0.493 GB, free: 5.168 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001412/0.5753, allocations: 1.097 MB / 0.4941 GB, free: 4.07 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5753, allocations: 0 / 0.4941 GB, free: 4.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3495/0.9249, allocations: 46.47 MB / 0.5395 GB, free: 149.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/0.9251, allocations: 250.1 kB / 0.5397 GB, free: 148.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.634/3.559, allocations: 2.969 kB / 0.5397 GB, free: 148.8 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat