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.001148/0.001148, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 58.69 kB / 307.1 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1059, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.2004/0.3064, allocations: 21.54 MB / 379.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01414/0.3205, allocations: 6.79 MB / 385.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005907/0.3265, allocations: 144.7 kB / 386.1 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01505/0.3416, allocations: 6.823 MB / 392.9 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008529/0.3501, allocations: 2.753 MB / 395.7 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00456/0.3547, allocations: 1.577 MB / 397.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01208/0.3668, allocations: 9.002 MB / 406.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03059/0.3974, allocations: 17.94 MB / 424.2 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007959/0.4054, allocations: 4.625 MB / 428.8 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009626/0.4151, allocations: 5.202 MB / 434 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004428/0.4195, allocations: 1.359 MB / 435.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007325/0.4269, allocations: 1.707 MB / 437.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004511/0.4314, allocations: 2.615 MB / 439.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008885/0.4403, allocations: 4.962 MB / 444.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02243/0.4628, allocations: 18.13 MB / 462.8 MB, free: 3.004 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.4628, allocations: 0 / 462.8 MB, free: 3.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4628, allocations: 0 / 462.8 MB, free: 3.004 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000441/0.4633, allocations: 0 / 462.8 MB, free: 3.004 MB / 366.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.03309/0.4964, allocations: 10.64 MB / 473.4 MB, free: 8.273 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.4965, allocations: 8.031 kB / 473.4 MB, free: 8.266 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003833/0.5003, allocations: 1.082 MB / 474.5 MB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03353/0.5339, allocations: 5.887 MB / 480.4 MB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01224/0.5461, allocations: 5.585 MB / 486 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005883/0.5467, allocations: 0.558 MB / 486.5 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002761/0.5495, allocations: 0.742 MB / 487.3 MB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0314/0.5809, allocations: 12.85 MB / 0.4884 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004168/0.5814, allocations: 15.91 kB / 0.4884 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003163/0.5846, allocations: 308 kB / 0.4887 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006062/0.5852, allocations: 492.1 kB / 0.4892 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02991/0.6151, allocations: 12.58 MB / 0.5015 GB, free: 12 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4057/1.021, allocations: 41.9 MB / 0.5424 GB, free: 114 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0199/1.041, allocations: 26.24 MB / 0.568 GB, free: 92.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005724/1.047, allocations: 3.223 MB / 0.5712 GB, free: 92.21 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000385/1.047, allocations: 254.7 kB / 0.5714 GB, free: 92.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/1.047, allocations: 74.75 kB / 0.5715 GB, free: 91.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=410): time 6.452e-06/1.047, allocations: 0 / 0.5715 GB, free: 91.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=415): time 0.0361/1.083, allocations: 16.99 MB / 0.5881 GB, free: 85.97 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/1.083, allocations: 103.7 kB / 0.5882 GB, free: 85.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003595/1.087, allocations: 2.835 MB / 0.5909 GB, free: 84.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005031/1.087, allocations: 89.05 kB / 0.591 GB, free: 84.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/1.089, allocations: 3.044 MB / 0.594 GB, free: 82.44 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009667/1.09, allocations: 1.396 MB / 0.5953 GB, free: 81.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001214/1.091, allocations: 0.9434 MB / 0.5963 GB, free: 80.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.988e-05/1.091, allocations: 301.1 kB / 0.5965 GB, free: 80.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003167/1.094, allocations: 2.508 MB / 0.599 GB, free: 79.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003904/1.098, allocations: 4.11 MB / 0.603 GB, free: 75.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007784/1.106, allocations: 7.193 MB / 0.61 GB, free: 70.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.035e-05/1.106, allocations: 16.03 kB / 0.6101 GB, free: 70.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.01188/1.118, allocations: 8.022 MB / 0.6179 GB, free: 63.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.573e-05/1.118, allocations: 28 kB / 0.6179 GB, free: 63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.755e-05/1.118, allocations: 48 kB / 0.618 GB, free: 62.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003194/1.121, allocations: 1.251 MB / 0.6192 GB, free: 61.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004113/1.125, allocations: 1.123 MB / 0.6203 GB, free: 60.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/1.138, allocations: 11.25 MB / 0.6313 GB, free: 49.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003506/1.142, allocations: 271.7 kB / 0.6315 GB, free: 48.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005908/1.142, allocations: 229.7 kB / 0.6317 GB, free: 48.55 MB / 446.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.004012/1.146, allocations: 2.944 MB / 0.6346 GB, free: 45.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007685/1.147, allocations: 355.8 kB / 0.635 GB, free: 45.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01034/1.158, allocations: 6.709 MB / 0.6415 GB, free: 38.49 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/1.158, allocations: 47.98 kB / 0.6416 GB, free: 38.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/1.158, allocations: 15.94 kB / 0.6416 GB, free: 38.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.284e-05/1.158, allocations: 23.92 kB / 0.6416 GB, free: 38.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02083/1.178, allocations: 15.19 MB / 0.6564 GB, free: 23.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/1.179, allocations: 8 kB / 0.6564 GB, free: 23.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00275/1.181, allocations: 0.7456 MB / 0.6572 GB, free: 22.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003026/1.184, allocations: 1.141 MB / 0.6583 GB, free: 21.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003416/1.185, allocations: 91.98 kB / 0.6584 GB, free: 21.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/1.196, allocations: 10.18 MB / 0.6683 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.196, allocations: 4 kB / 0.6683 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01381/1.21, allocations: 10.01 MB / 0.6781 GB, free: 496 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001969/1.212, allocations: 0.9214 MB / 0.679 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006033/1.212, allocations: 80 kB / 0.6791 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002014/1.214, allocations: 207.8 kB / 0.6793 GB, free: 15.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007175/1.215, allocations: 299.2 kB / 0.6796 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002633/1.215, allocations: 124 kB / 0.6797 GB, free: 14.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003049/1.219, allocations: 1.955 MB / 0.6816 GB, free: 12.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.219, allocations: 0 / 0.6816 GB, free: 12.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004867/1.223, allocations: 1.397 MB / 0.6829 GB, free: 11.49 MB / 462.1 MB 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.01646/1.24, allocations: 10.74 MB / 0.6934 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03291/1.273, allocations: 13.56 MB / 0.7067 GB, free: 3.082 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.273, allocations: 0 / 0.7067 GB, free: 3.082 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.184/1.457, allocations: 3.544 MB / 0.7101 GB, free: 159.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004535/1.461, allocations: 0.8326 MB / 0.711 GB, free: 159.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07837/1.54, allocations: 53.64 MB / 0.7633 GB, free: 127 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004825/1.545, allocations: 5.077 MB / 0.7683 GB, free: 121.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004503/1.549, allocations: 1.614 MB / 0.7699 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003686/1.553, allocations: 2.663 MB / 0.7725 GB, free: 117.5 MB / 478.1 MB Notification: Performance of SimCode: time 8.51e-07/1.553, allocations: 0 / 0.7725 GB, free: 117.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3468/1.9, allocations: 111.9 MB / 0.8818 GB, free: 126.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/13.44, allocations: 5.25 kB / 0.8818 GB, free: 126.6 MB / 478.1 MB (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)