Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_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.001702/0.001702, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001961/0.001961, allocations: 200.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 63.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2932, allocations: 50.53 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.02453/0.3178, allocations: 21.55 MB / 430.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01615/0.334, allocations: 6.784 MB / 437.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005761/0.3398, allocations: 143.6 kB / 437.3 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01773/0.3576, allocations: 6.824 MB / 444.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01121/0.3689, allocations: 2.747 MB / 446.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005473/0.3743, allocations: 1.582 MB / 448.4 MB, free: 9.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01428/0.3886, allocations: 9.063 MB / 457.5 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03245/0.4211, allocations: 17.81 MB / 475.3 MB, free: 14.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008581/0.4298, allocations: 4.641 MB / 479.9 MB, free: 10.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009569/0.4394, allocations: 5.159 MB / 485.1 MB, free: 4.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004414/0.4438, allocations: 1.355 MB / 486.5 MB, free: 3.488 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005892/0.4498, allocations: 1.691 MB / 488.1 MB, free: 1.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004874/0.4547, allocations: 2.611 MB / 490.8 MB, free: 15.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01014/0.4648, allocations: 4.962 MB / 495.7 MB, free: 10.2 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02681/0.4917, allocations: 18.26 MB / 0.5019 GB, free: 7.883 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.4917, allocations: 0 / 0.5019 GB, free: 7.883 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4917, allocations: 0 / 0.5019 GB, free: 7.883 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005057/0.4922, allocations: 0 / 0.5019 GB, free: 7.883 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2107 * Number of variables: 2107 Notification: Performance of Generate backend data structure: time 0.03655/0.5288, allocations: 10.74 MB / 0.5124 GB, free: 13.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.5289, allocations: 8.031 kB / 0.5124 GB, free: 13.04 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004579/0.5335, allocations: 1.094 MB / 0.5135 GB, free: 11.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03381/0.5673, allocations: 5.985 MB / 0.5193 GB, free: 5.938 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01407/0.5814, allocations: 5.727 MB / 0.5249 GB, free: 156 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007625/0.5822, allocations: 0.5501 MB / 0.5255 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003691/0.5859, allocations: 0.7381 MB / 0.5262 GB, free: 14.86 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03656/0.6225, allocations: 12.85 MB / 0.5387 GB, free: 1.945 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000424/0.623, allocations: 15.94 kB / 0.5388 GB, free: 1.93 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003046/0.626, allocations: 308 kB / 0.5391 GB, free: 1.629 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006716/0.6267, allocations: 496.1 kB / 0.5395 GB, free: 1.141 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2683/0.895, allocations: 12.58 MB / 0.5518 GB, free: 109.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06096/0.956, allocations: 41.52 MB / 0.5924 GB, free: 73.32 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01492/0.971, allocations: 26.25 MB / 0.618 GB, free: 44.01 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004259/0.9753, allocations: 3.21 MB / 0.6211 GB, free: 40.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004347/0.9757, allocations: 252.5 kB / 0.6214 GB, free: 40.53 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.582e-05/0.9758, allocations: 69.78 kB / 0.6214 GB, free: 40.45 MB / 462.1 MB Notification: Performance of pre-optimization done (n=410): time 8.947e-06/0.9758, allocations: 3.531 kB / 0.6214 GB, free: 40.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=415): time 0.03483/1.011, allocations: 17.09 MB / 0.6381 GB, free: 23.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/1.011, allocations: 94.66 kB / 0.6382 GB, free: 23.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004848/1.016, allocations: 2.845 MB / 0.641 GB, free: 20.67 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004656/1.016, allocations: 89.7 kB / 0.6411 GB, free: 20.58 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001578/1.018, allocations: 3.142 MB / 0.6441 GB, free: 17.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/1.019, allocations: 1.466 MB / 0.6456 GB, free: 16.13 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001776/1.021, allocations: 0.9465 MB / 0.6465 GB, free: 15.17 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.943e-05/1.021, allocations: 312.7 kB / 0.6468 GB, free: 14.87 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003482/1.024, allocations: 2.505 MB / 0.6492 GB, free: 12.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003885/1.028, allocations: 4.113 MB / 0.6533 GB, free: 7.52 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007239/1.035, allocations: 7.187 MB / 0.6603 GB, free: 15.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.235e-05/1.035, allocations: 16 kB / 0.6603 GB, free: 15.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.01437/1.05, allocations: 8.038 MB / 0.6681 GB, free: 7.527 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.321e-05/1.05, allocations: 31.94 kB / 0.6682 GB, free: 7.496 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.492e-05/1.05, allocations: 52 kB / 0.6682 GB, free: 7.445 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003501/1.053, allocations: 1.231 MB / 0.6694 GB, free: 6.211 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004228/1.058, allocations: 1.135 MB / 0.6705 GB, free: 5.074 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01666/1.074, allocations: 11.24 MB / 0.6815 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003486/1.078, allocations: 271.7 kB / 0.6818 GB, free: 9.301 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005116/1.078, allocations: 228 kB / 0.682 GB, free: 9.078 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 228 * 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 (590): * Single equations (assignments): 588 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (14,44,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005246/1.084, allocations: 2.963 MB / 0.6849 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009505/1.085, allocations: 369.6 kB / 0.6852 GB, free: 5.742 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01233/1.097, allocations: 6.698 MB / 0.6918 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-05/1.097, allocations: 47.98 kB / 0.6918 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.745e-05/1.097, allocations: 8 kB / 0.6918 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.93e-05/1.097, allocations: 19.92 kB / 0.6918 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/1.123, allocations: 14.88 MB / 0.7064 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/1.124, allocations: 7.938 kB / 0.7064 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003016/1.127, allocations: 0.7495 MB / 0.7071 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003256/1.13, allocations: 1.13 MB / 0.7082 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003993/1.13, allocations: 87.98 kB / 0.7083 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/1.145, allocations: 10.17 MB / 0.7182 GB, free: 3.559 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/1.145, allocations: 7.938 kB / 0.7183 GB, free: 3.551 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01704/1.162, allocations: 10.03 MB / 0.728 GB, free: 9.391 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00225/1.164, allocations: 0.932 MB / 0.729 GB, free: 8.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005372/1.165, allocations: 87.89 kB / 0.729 GB, free: 8.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001883/1.167, allocations: 203.8 kB / 0.7292 GB, free: 8.152 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006956/1.167, allocations: 307.2 kB / 0.7295 GB, free: 7.852 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000271/1.168, allocations: 120 kB / 0.7296 GB, free: 7.734 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003628/1.171, allocations: 1.955 MB / 0.7316 GB, free: 5.773 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/1.171, allocations: 0 / 0.7316 GB, free: 5.773 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004968/1.176, allocations: 1.391 MB / 0.7329 GB, free: 4.383 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 3 (aimc.inertiaRotor.w,voltageSource.plug_p.reference.gamma,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 (398): * Single equations (assignments): 396 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (14,44,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01699/1.193, allocations: 10.74 MB / 0.7434 GB, free: 9.508 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01361/1.207, allocations: 6.748 MB / 0.75 GB, free: 2.734 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/1.207, allocations: 0.5 kB / 0.75 GB, free: 2.734 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2431/1.45, allocations: 3.555 MB / 0.7535 GB, free: 200.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005035/1.455, allocations: 0.8426 MB / 0.7543 GB, free: 200.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07337/1.529, allocations: 47.23 MB / 0.8004 GB, free: 168.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004907/1.534, allocations: 5.08 MB / 0.8054 GB, free: 163.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00413/1.538, allocations: 1.618 MB / 0.8069 GB, free: 162.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00381/1.542, allocations: 2.667 MB / 0.8096 GB, free: 159.4 MB / 0.545 GB Notification: Performance of SimCode: time 8.42e-07/1.542, allocations: 0 / 0.8096 GB, free: 159.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1565/1.698, allocations: 110.4 MB / 0.9174 GB, free: 49.53 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.53/20.23, allocations: 12.56 kB / 0.9174 GB, free: 49.52 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1)