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.001025/0.001025, allocations: 87.7 kB / 16.31 MB, free: 6.453 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.001329/0.001329, allocations: 180.8 kB / 17.21 MB, free: 6.328 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.448/1.448, allocations: 223.2 MB / 241.2 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002745, allocations: 7.219 kB / 300.9 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 50.43 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01286/0.1182, allocations: 11.26 MB / 362.6 MB, free: 284 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008407/0.1267, allocations: 3.93 MB / 366.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002175/0.1289, allocations: 71.69 kB / 366.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002582/0.1315, allocations: 0.7264 MB / 367.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003815/0.1353, allocations: 1.053 MB / 368.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001699/0.137, allocations: 0.5763 MB / 369 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005078/0.1421, allocations: 3.878 MB / 372.8 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002937/0.1451, allocations: 2.218 MB / 375.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002188/0.1473, allocations: 1.245 MB / 376.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002577/0.1499, allocations: 1.583 MB / 377.9 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004503/0.1503, allocations: 200 kB / 378.1 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.1515, allocations: 391.7 kB / 378.5 MB, free: 340 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006923/0.1522, allocations: 0.7395 MB / 379.2 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009924/0.1532, allocations: 0.7187 MB / 379.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005207/0.1585, allocations: 5.403 MB / 385.3 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1585, allocations: 3.938 kB / 385.3 MB, free: 9.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1585, allocations: 0 / 385.3 MB, free: 9.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001566/0.1587, allocations: 0 / 385.3 MB, free: 9.441 MB / 318.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.009708/0.1684, allocations: 3.68 MB / 389 MB, free: 5.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.1684, allocations: 8.031 kB / 389 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001188/0.1696, allocations: 447 kB / 389.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004254/0.1739, allocations: 0.8038 MB / 390.3 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005022/0.179, allocations: 2.231 MB / 392.5 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002919/0.1793, allocations: 238.2 kB / 392.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009941/0.1803, allocations: 311.9 kB / 393 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008377/0.1887, allocations: 4.207 MB / 397.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.391e-05/0.1888, allocations: 7.938 kB / 397.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002934/0.1891, allocations: 124 kB / 397.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001614/0.1892, allocations: 154.3 kB / 397.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006311/0.1955, allocations: 3.601 MB / 401.1 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01983/0.2154, allocations: 13.24 MB / 414.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006318/0.2218, allocations: 6.893 MB / 421.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002181/0.224, allocations: 1.39 MB / 422.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2226/0.4466, allocations: 3.744 MB / 426.4 MB, free: 60.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.4467, allocations: 48.09 kB / 426.4 MB, free: 60.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=120): time 3.987e-06/0.4467, allocations: 0 / 426.4 MB, free: 60.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=123): time 0.01024/0.4569, allocations: 5.483 MB / 431.9 MB, free: 58.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.457, allocations: 68.09 kB / 432 MB, free: 58.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/0.4599, allocations: 1.687 MB / 433.7 MB, free: 58.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.46, allocations: 47.08 kB / 433.7 MB, free: 58.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009766/0.461, allocations: 1.402 MB / 435.1 MB, free: 57.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003296/0.4614, allocations: 434.8 kB / 435.5 MB, free: 57.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.4615, allocations: 36.53 kB / 435.6 MB, free: 57.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.4616, allocations: 369 kB / 435.9 MB, free: 57.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.4628, allocations: 0.6444 MB / 436.6 MB, free: 57.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001332/0.4642, allocations: 1.12 MB / 437.7 MB, free: 56.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.4655, allocations: 0.8499 MB / 438.6 MB, free: 56.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.4655, allocations: 4.125 kB / 438.6 MB, free: 56.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004011/0.4695, allocations: 2.333 MB / 440.9 MB, free: 55.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.35e-05/0.4696, allocations: 11.16 kB / 440.9 MB, free: 55.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.4696, allocations: 18.05 kB / 440.9 MB, free: 55.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006438/0.4703, allocations: 272.9 kB / 441.2 MB, free: 55.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/0.4714, allocations: 357.1 kB / 441.5 MB, free: 55.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003896/0.4753, allocations: 5.687 MB / 447.2 MB, free: 50.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.4765, allocations: 74.84 kB / 447.3 MB, free: 50.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.87e-05/0.4766, allocations: 71.94 kB / 447.4 MB, free: 50.66 MB / 350.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 (180): * Single equations (assignments): 176 * 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%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001634/0.4783, allocations: 0.9977 MB / 448.4 MB, free: 50.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002782/0.4786, allocations: 180.8 kB / 448.5 MB, free: 50 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/0.4818, allocations: 2.151 MB / 450.7 MB, free: 48.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.4818, allocations: 11.72 kB / 450.7 MB, free: 48.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.4819, allocations: 7.938 kB / 450.7 MB, free: 48.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.4819, allocations: 7.594 kB / 450.7 MB, free: 48.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006289/0.4882, allocations: 4.83 MB / 455.5 MB, free: 46.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.4882, allocations: 3.875 kB / 455.5 MB, free: 46.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006546/0.4889, allocations: 168.3 kB / 455.7 MB, free: 46.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009206/0.4898, allocations: 453.6 kB / 456.2 MB, free: 46.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.478e-05/0.4899, allocations: 39.81 kB / 456.2 MB, free: 46.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007033/0.4969, allocations: 10.09 MB / 466.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4969, allocations: 0 / 466.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004113/0.5011, allocations: 3.014 MB / 469.3 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008413/0.5019, allocations: 410.8 kB / 469.7 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002089/0.5021, allocations: 31.98 kB / 469.7 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007273/0.5029, allocations: 71.95 kB / 469.8 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/0.5031, allocations: 96.8 kB / 469.9 MB, free: 32.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-05/0.5032, allocations: 35.98 kB / 469.9 MB, free: 32.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001485/0.5047, allocations: 1.158 MB / 471.1 MB, free: 31.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5047, allocations: 4 kB / 471.1 MB, free: 31.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002029/0.5067, allocations: 0.5377 MB / 471.6 MB, free: 30.87 MB / 350.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 (86): * Single equations (assignments): 81 * 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%) 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.003984/0.5107, allocations: 3.631 MB / 475.3 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002775/0.5135, allocations: 2.09 MB / 477.4 MB, free: 24.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.5135, allocations: 0 / 477.4 MB, free: 24.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.5153, allocations: 1.527 MB / 478.9 MB, free: 23.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/0.5175, allocations: 0.4907 MB / 479.4 MB, free: 22.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02737/0.5449, allocations: 15.7 MB / 495.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001621/0.5465, allocations: 2.281 MB / 497.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001342/0.5479, allocations: 387.7 kB / 497.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.549, allocations: 1.101 MB / 498.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of SimCode: time 1.794e-06/0.549, allocations: 0 / 498.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07316/0.6222, allocations: 46.41 MB / 0.5325 GB, free: 4.617 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.6224, allocations: 257.1 kB / 0.5327 GB, free: 4.281 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.868/3.49, allocations: 0 / 0.5327 GB, free: 4.281 MB / 398.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