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.00116/0.00116, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 204.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.319/1.319, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 63.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2659, allocations: 50.53 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.02375/0.2897, allocations: 21.55 MB / 430.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01485/0.3046, allocations: 6.784 MB / 437.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004434/0.309, allocations: 147.6 kB / 437.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0158/0.3249, allocations: 6.867 MB / 444.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009593/0.3345, allocations: 2.798 MB / 446.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004769/0.3393, allocations: 1.583 MB / 448.5 MB, free: 9.652 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01209/0.3514, allocations: 9.068 MB / 457.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0311/0.3825, allocations: 17.8 MB / 475.4 MB, free: 14.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008144/0.3907, allocations: 4.652 MB / 480 MB, free: 9.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009305/0.4001, allocations: 5.167 MB / 485.2 MB, free: 4.746 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004145/0.4043, allocations: 1.355 MB / 486.6 MB, free: 3.391 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005547/0.4098, allocations: 1.687 MB / 488.2 MB, free: 1.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005212/0.4151, allocations: 2.615 MB / 490.9 MB, free: 15.08 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01066/0.4258, allocations: 4.966 MB / 495.8 MB, free: 10.1 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02309/0.4489, allocations: 18.26 MB / 0.502 GB, free: 7.785 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.449, allocations: 0 / 0.502 GB, free: 7.785 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.449, allocations: 0 / 0.502 GB, free: 7.785 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005357/0.4495, allocations: 0 / 0.502 GB, free: 7.785 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.03501/0.4846, allocations: 10.74 MB / 0.5125 GB, free: 12.95 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.4846, allocations: 8.031 kB / 0.5125 GB, free: 12.94 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004001/0.4886, allocations: 1.094 MB / 0.5136 GB, free: 11.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03392/0.5226, allocations: 5.977 MB / 0.5194 GB, free: 5.844 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01283/0.5354, allocations: 5.731 MB / 0.525 GB, free: 56 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005744/0.5361, allocations: 0.554 MB / 0.5256 GB, free: 15.49 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003071/0.5391, allocations: 0.7381 MB / 0.5263 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03252/0.5717, allocations: 12.86 MB / 0.5388 GB, free: 1.84 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000253/0.572, allocations: 11.95 kB / 0.5389 GB, free: 1.828 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002076/0.5741, allocations: 308 kB / 0.5392 GB, free: 1.527 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005153/0.5746, allocations: 0.4883 MB / 0.5396 GB, free: 1.035 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2604/0.8351, allocations: 12.59 MB / 0.5519 GB, free: 109.4 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05844/0.8935, allocations: 41.52 MB / 0.5925 GB, free: 73.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0155/0.9091, allocations: 26.25 MB / 0.6181 GB, free: 43.97 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004667/0.9138, allocations: 3.213 MB / 0.6212 GB, free: 40.76 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003881/0.9142, allocations: 252.6 kB / 0.6215 GB, free: 40.49 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.834e-05/0.9143, allocations: 73.78 kB / 0.6215 GB, free: 40.41 MB / 462.1 MB Notification: Performance of pre-optimization done (n=410): time 7.594e-06/0.9143, allocations: 3.938 kB / 0.6216 GB, free: 40.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=415): time 0.0344/0.9487, allocations: 17.08 MB / 0.6382 GB, free: 23.56 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.9488, allocations: 98.59 kB / 0.6383 GB, free: 23.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003523/0.9523, allocations: 2.845 MB / 0.6411 GB, free: 20.63 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006412/0.953, allocations: 89.7 kB / 0.6412 GB, free: 20.54 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001419/0.9544, allocations: 3.142 MB / 0.6443 GB, free: 17.53 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001353/0.9558, allocations: 1.466 MB / 0.6457 GB, free: 16.08 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001262/0.9571, allocations: 0.9426 MB / 0.6466 GB, free: 15.13 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.077e-05/0.9571, allocations: 312.8 kB / 0.6469 GB, free: 14.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003242/0.9604, allocations: 2.501 MB / 0.6494 GB, free: 12.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004562/0.965, allocations: 4.113 MB / 0.6534 GB, free: 7.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007652/0.9727, allocations: 7.183 MB / 0.6604 GB, free: 15.58 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.072e-05/0.9727, allocations: 16 kB / 0.6604 GB, free: 15.56 MB / 478.1 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.01383/0.9865, allocations: 8.042 MB / 0.6683 GB, free: 7.492 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/0.9866, allocations: 35.88 kB / 0.6683 GB, free: 7.457 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.271e-05/0.9867, allocations: 52 kB / 0.6683 GB, free: 7.406 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003548/0.9903, allocations: 1.235 MB / 0.6695 GB, free: 6.168 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004556/0.9949, allocations: 1.127 MB / 0.6706 GB, free: 5.039 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01763/1.013, allocations: 11.24 MB / 0.6816 GB, free: 9.523 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004173/1.017, allocations: 271.7 kB / 0.6819 GB, free: 9.258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001143/1.018, allocations: 228 kB / 0.6821 GB, free: 9.035 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.006489/1.024, allocations: 2.963 MB / 0.685 GB, free: 6.062 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00147/1.026, allocations: 373.6 kB / 0.6853 GB, free: 5.695 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01497/1.041, allocations: 6.694 MB / 0.6919 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.513e-05/1.041, allocations: 47.98 kB / 0.6919 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.432e-05/1.041, allocations: 8 kB / 0.6919 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-05/1.041, allocations: 23.86 kB / 0.692 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03334/1.074, allocations: 14.87 MB / 0.7065 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.139e-05/1.075, allocations: 4 kB / 0.7065 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003301/1.078, allocations: 0.7534 MB / 0.7072 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003569/1.081, allocations: 1.13 MB / 0.7083 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005936/1.082, allocations: 87.98 kB / 0.7084 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01503/1.097, allocations: 10.17 MB / 0.7183 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.896e-06/1.097, allocations: 11.88 kB / 0.7184 GB, free: 3.512 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01875/1.116, allocations: 10.03 MB / 0.7282 GB, free: 9.348 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003141/1.119, allocations: 0.932 MB / 0.7291 GB, free: 8.395 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.12, allocations: 95.89 kB / 0.7292 GB, free: 8.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002674/1.123, allocations: 199.8 kB / 0.7293 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008805/1.124, allocations: 303.2 kB / 0.7296 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000431/1.124, allocations: 124 kB / 0.7298 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004011/1.128, allocations: 1.951 MB / 0.7317 GB, free: 5.73 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.91e-07/1.128, allocations: 0 / 0.7317 GB, free: 5.73 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0059/1.134, allocations: 1.387 MB / 0.733 GB, free: 4.344 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.01782/1.152, allocations: 10.75 MB / 0.7435 GB, free: 9.457 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01263/1.165, allocations: 6.74 MB / 0.7501 GB, free: 2.691 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.948e-06/1.165, allocations: 448 / 0.7501 GB, free: 2.691 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2356/1.4, allocations: 3.563 MB / 0.7536 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.00491/1.405, allocations: 0.84 MB / 0.7544 GB, free: 200.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06558/1.471, allocations: 47.22 MB / 0.8005 GB, free: 168.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004533/1.476, allocations: 5.08 MB / 0.8055 GB, free: 163.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003862/1.479, allocations: 1.618 MB / 0.8071 GB, free: 162.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003086/1.483, allocations: 2.659 MB / 0.8097 GB, free: 159.5 MB / 0.545 GB Notification: Performance of SimCode: time 7.92e-07/1.483, allocations: 0 / 0.8097 GB, free: 159.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1431/1.626, allocations: 110.4 MB / 0.9175 GB, free: 49.59 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.21/18.83, allocations: 16.62 kB / 0.9175 GB, free: 49.57 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)