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.0008565/0.0008565, allocations: 101.7 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009131/0.0009132, allocations: 192.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002874, allocations: 4 kB / 306.8 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1087, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.012/0.1207, allocations: 11.81 MB / 370.1 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2098/0.3305, allocations: 4.14 MB / 374.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002354/0.333, allocations: 75 kB / 374.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00282/0.3358, allocations: 0.7395 MB / 375.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004264/0.3401, allocations: 1.022 MB / 376.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002122/0.3422, allocations: 0.6145 MB / 376.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007167/0.3494, allocations: 3.974 MB / 380.7 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003648/0.3531, allocations: 2.22 MB / 382.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003012/0.3561, allocations: 1.245 MB / 384.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003882/0.36, allocations: 1.599 MB / 385.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009703/0.361, allocations: 204.1 kB / 386 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002279/0.3633, allocations: 408.2 kB / 386.4 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009296/0.3642, allocations: 0.7336 MB / 387.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.3658, allocations: 0.723 MB / 387.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006086/0.3719, allocations: 5.439 MB / 393.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3719, allocations: 0 / 393.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3719, allocations: 0 / 393.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001817/0.3721, allocations: 1.188 kB / 393.3 MB, free: 4.23 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.01034/0.3824, allocations: 3.705 MB / 397 MB, free: 1.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.3825, allocations: 13.41 kB / 397 MB, free: 1.855 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001226/0.3837, allocations: 449.9 kB / 397.4 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004424/0.3882, allocations: 0.8107 MB / 398.2 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004168/0.3923, allocations: 2.233 MB / 400.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.3925, allocations: 243.7 kB / 400.7 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005677/0.3931, allocations: 315.4 kB / 401 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008193/0.4013, allocations: 4.207 MB / 405.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.519e-05/0.4014, allocations: 7.906 kB / 405.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003057/0.4017, allocations: 134.7 kB / 405.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001537/0.4019, allocations: 150.3 kB / 405.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006489/0.4084, allocations: 3.605 MB / 409.1 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02194/0.4303, allocations: 13.32 MB / 422.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007809/0.4382, allocations: 7.161 MB / 429.6 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002906/0.4411, allocations: 1.584 MB / 431.2 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007568/0.4487, allocations: 4.227 MB / 435.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.4488, allocations: 43.56 kB / 435.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=120): time 2.895e-06/0.4488, allocations: 0 / 435.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=123): time 0.01176/0.4605, allocations: 5.655 MB / 441.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.4606, allocations: 64.41 kB / 441.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002916/0.4636, allocations: 1.715 MB / 442.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001173/0.4637, allocations: 45.7 kB / 442.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.4648, allocations: 1.413 MB / 444.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004986/0.4653, allocations: 432.4 kB / 444.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.716e-05/0.4653, allocations: 35.94 kB / 444.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.4655, allocations: 365.9 kB / 445.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.4668, allocations: 0.6598 MB / 445.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/0.4682, allocations: 1.125 MB / 446.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.4695, allocations: 0.8624 MB / 447.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.4695, allocations: 8 kB / 447.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004245/0.4738, allocations: 2.417 MB / 450.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.4738, allocations: 12 kB / 450.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-05/0.4739, allocations: 16 kB / 450.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009/0.4748, allocations: 315.3 kB / 450.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.4761, allocations: 351.4 kB / 450.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006724/0.4828, allocations: 6.119 MB / 457 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/0.4845, allocations: 75.86 kB / 457.1 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.4847, allocations: 77.69 kB / 457.2 MB, free: 5.91 MB / 366.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (177): * Single equations (assignments): 173 * 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.002301/0.487, allocations: 0.9971 MB / 458.2 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003679/0.4874, allocations: 181.8 kB / 458.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00405/0.4914, allocations: 2.233 MB / 460.6 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.4915, allocations: 16 kB / 460.6 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.4915, allocations: 8 kB / 460.6 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.4915, allocations: 3.984 kB / 460.6 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008437/0.4999, allocations: 4.951 MB / 465.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.5, allocations: 3.984 kB / 465.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007168/0.5007, allocations: 167.8 kB / 465.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001439/0.5022, allocations: 500 kB / 466.2 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.154e-05/0.5023, allocations: 35.98 kB / 466.2 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01164/0.5139, allocations: 10.53 MB / 476.8 MB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.514, allocations: 4.031 kB / 476.8 MB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005377/0.5193, allocations: 3.111 MB / 479.9 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.5204, allocations: 414.7 kB / 480.3 MB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002419/0.5207, allocations: 28 kB / 480.3 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008332/0.5215, allocations: 71.94 kB / 480.4 MB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/0.5218, allocations: 108.7 kB / 480.5 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.787e-05/0.5219, allocations: 32 kB / 480.5 MB, free: 13.58 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002289/0.5242, allocations: 1.171 MB / 481.7 MB, free: 12.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5242, allocations: 0 / 481.7 MB, free: 12.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002894/0.5271, allocations: 0.5509 MB / 482.2 MB, free: 11.87 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (83): * Single equations (assignments): 78 * 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.005576/0.5327, allocations: 3.729 MB / 486 MB, free: 8.047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003677/0.5364, allocations: 2.144 MB / 488.1 MB, free: 5.848 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5364, allocations: 4 kB / 488.1 MB, free: 5.844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002363/0.5388, allocations: 1.555 MB / 489.7 MB, free: 4.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002545/0.5413, allocations: 0.4904 MB / 490.2 MB, free: 3.742 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03379/0.5751, allocations: 15.93 MB / 0.4942 GB, free: 2.871 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002308/0.5775, allocations: 2.285 MB / 0.4965 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001602/0.5791, allocations: 379.9 kB / 0.4968 GB, free: 188 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/0.5808, allocations: 1.105 MB / 0.4979 GB, free: 15.08 MB / 430.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5808, allocations: 0 / 0.4979 GB, free: 15.08 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2812/0.862, allocations: 47.2 MB / 0.544 GB, free: 139.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001586/0.8622, allocations: 252.3 kB / 0.5442 GB, free: 139.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.781/3.644, allocations: 3.828 kB / 0.5442 GB, free: 139.5 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