Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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.0009233/0.000923, allocations: 95.88 kB / 16.95 MB, free: 6.457 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.001063/0.001063, allocations: 182.5 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004794/0.0004795, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1144, allocations: 47.58 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01251/0.127, allocations: 11.22 MB / 339.7 MB, free: 8.711 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009311/0.1364, allocations: 3.967 MB / 343.6 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002448/0.1389, allocations: 67.69 kB / 343.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.1417, allocations: 0.7186 MB / 344.4 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004331/0.1461, allocations: 1.033 MB / 345.5 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001992/0.1481, allocations: 0.5925 MB / 346.1 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006243/0.1544, allocations: 3.895 MB / 349.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002801/0.1572, allocations: 2.174 MB / 352.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00293/0.1601, allocations: 1.241 MB / 353.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003356/0.1635, allocations: 1.599 MB / 355 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004684/0.164, allocations: 203.8 kB / 355.2 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001514/0.1655, allocations: 387.8 kB / 355.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008002/0.1663, allocations: 0.7396 MB / 356.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001125/0.1674, allocations: 0.7149 MB / 357 MB, free: 7.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005537/0.173, allocations: 5.391 MB / 362.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.173, allocations: 0 / 362.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.173, allocations: 0 / 362.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001549/0.1732, allocations: 4 kB / 362.4 MB, free: 1.879 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.009828/0.183, allocations: 3.673 MB / 366.1 MB, free: 14.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1831, allocations: 19.95 kB / 366.1 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001078/0.1842, allocations: 451 kB / 366.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003952/0.1881, allocations: 0.8038 MB / 367.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003991/0.1921, allocations: 2.118 MB / 369.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.1923, allocations: 230.2 kB / 369.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004687/0.1928, allocations: 315.9 kB / 370 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007625/0.2004, allocations: 4.211 MB / 374.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.275e-05/0.2005, allocations: 0 / 374.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002836/0.2008, allocations: 136 kB / 374.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001476/0.201, allocations: 146.3 kB / 374.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006814/0.2078, allocations: 3.601 MB / 378.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2584/0.4662, allocations: 13.23 MB / 391.3 MB, free: 42.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005925/0.4722, allocations: 6.896 MB / 398.2 MB, free: 36.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002204/0.4745, allocations: 1.387 MB / 399.6 MB, free: 35.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006979/0.4815, allocations: 3.733 MB / 403.3 MB, free: 32.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.4815, allocations: 45.12 kB / 403.4 MB, free: 32.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=119): time 4.379e-06/0.4816, allocations: 0 / 403.4 MB, free: 32.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01105/0.4926, allocations: 5.464 MB / 408.8 MB, free: 29.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.4928, allocations: 70.31 kB / 408.9 MB, free: 29.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003058/0.4958, allocations: 1.695 MB / 410.6 MB, free: 28.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.496, allocations: 45.27 kB / 410.6 MB, free: 28.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.4971, allocations: 1.404 MB / 412 MB, free: 26.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003979/0.4975, allocations: 422 kB / 412.4 MB, free: 26.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.837e-05/0.4975, allocations: 35.22 kB / 412.5 MB, free: 26.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4977, allocations: 364.8 kB / 412.8 MB, free: 26.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009731/0.4987, allocations: 0.6452 MB / 413.5 MB, free: 25.78 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.5, allocations: 1.116 MB / 414.6 MB, free: 24.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.5011, allocations: 0.8477 MB / 415.4 MB, free: 24.33 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.5011, allocations: 8 kB / 415.4 MB, free: 24.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003318/0.5045, allocations: 2.337 MB / 417.8 MB, free: 21.95 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.5045, allocations: 12 kB / 417.8 MB, free: 21.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/0.5045, allocations: 16 kB / 417.8 MB, free: 21.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006565/0.5052, allocations: 264.5 kB / 418.1 MB, free: 21.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.5064, allocations: 363.4 kB / 418.4 MB, free: 21.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004454/0.5108, allocations: 5.694 MB / 424.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.5126, allocations: 84.02 kB / 424.2 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.5127, allocations: 64 kB / 424.3 MB, free: 15.07 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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.002077/0.5148, allocations: 1.001 MB / 425.3 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002906/0.5151, allocations: 187.4 kB / 425.4 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003109/0.5182, allocations: 2.122 MB / 427.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.5183, allocations: 15.94 kB / 427.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.5183, allocations: 8 kB / 427.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.5183, allocations: 3.984 kB / 427.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007033/0.5253, allocations: 4.833 MB / 432.4 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.5254, allocations: 0 / 432.4 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000682/0.5261, allocations: 179.9 kB / 432.6 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.5271, allocations: 446.6 kB / 433 MB, free: 6.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.749e-05/0.5272, allocations: 35.98 kB / 433.1 MB, free: 6.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008784/0.536, allocations: 10.08 MB / 443.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.5361, allocations: 0 / 443.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005329/0.5414, allocations: 3.009 MB / 446.2 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.5426, allocations: 412.8 kB / 446.6 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002263/0.5429, allocations: 31.98 kB / 446.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007903/0.5437, allocations: 71.95 kB / 446.7 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002696/0.5439, allocations: 97.44 kB / 446.8 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.678e-05/0.544, allocations: 39.98 kB / 446.8 MB, free: 7.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001937/0.546, allocations: 1.158 MB / 448 MB, free: 6.426 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.546, allocations: 4 kB / 448 MB, free: 6.422 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002305/0.5483, allocations: 0.5377 MB / 448.5 MB, free: 5.887 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005407/0.5537, allocations: 3.618 MB / 452.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003733/0.5575, allocations: 2.077 MB / 454.2 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.5575, allocations: 0 / 454.2 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002599/0.5601, allocations: 1.537 MB / 455.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/0.5632, allocations: 0.4903 MB / 456.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03858/0.6018, allocations: 15.71 MB / 471.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003354/0.6052, allocations: 2.281 MB / 474.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001869/0.6071, allocations: 391.7 kB / 474.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001927/0.609, allocations: 1.097 MB / 475.7 MB, free: 9.531 MB / 366.1 MB Notification: Performance of SimCode: time 4.769e-06/0.6091, allocations: 0 / 475.7 MB, free: 9.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09164/0.7007, allocations: 46.36 MB / 0.5098 GB, free: 11.1 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002395/0.701, allocations: 228.1 kB / 0.51 GB, free: 10.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.085/3.786, allocations: 4 kB / 0.51 GB, free: 10.86 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat