Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.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.Electrical.Machines.Examples.DCMachines.DCPM_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001439/0.001439, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001656/0.001656, allocations: 203.9 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002615/0.002615, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3295, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.02849/0.3581, allocations: 23.41 MB / 432.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01495/0.3731, allocations: 6.839 MB / 439 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005272/0.3784, allocations: 99.69 kB / 439.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003303/0.3817, allocations: 0.8142 MB / 439.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004158/0.3859, allocations: 0.8716 MB / 440.8 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002604/0.3885, allocations: 0.8037 MB / 441.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00602/0.3946, allocations: 3.476 MB / 445.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003428/0.398, allocations: 1.966 MB / 447 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002585/0.4006, allocations: 1.292 MB / 448.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002299/0.403, allocations: 1.404 MB / 449.7 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009203/0.4039, allocations: 384 kB / 450.1 MB, free: 7.965 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001021/0.405, allocations: 424 kB / 450.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007737/0.4058, allocations: 0.7008 MB / 451.2 MB, free: 6.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00215/0.4079, allocations: 1.606 MB / 452.8 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006676/0.4146, allocations: 4.534 MB / 457.4 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4147, allocations: 0 / 457.4 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4147, allocations: 0 / 457.4 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001394/0.4148, allocations: 0 / 457.4 MB, free: 0.6836 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.007339/0.4222, allocations: 3.122 MB / 460.5 MB, free: 13.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.4222, allocations: 12.03 kB / 460.5 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005994/0.4229, allocations: 366.9 kB / 460.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001211/0.4241, allocations: 378.9 kB / 461.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003066/0.4272, allocations: 1.498 MB / 462.7 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001831/0.4274, allocations: 197.3 kB / 462.9 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005189/0.4279, allocations: 264 kB / 463.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005197/0.4331, allocations: 2.469 MB / 465.6 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.877e-05/0.4332, allocations: 7.922 kB / 465.6 MB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002263/0.4334, allocations: 108 kB / 465.8 MB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.344e-05/0.4335, allocations: 64 kB / 465.8 MB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003705/0.4372, allocations: 1.658 MB / 467.5 MB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01569/0.4529, allocations: 10.23 MB / 477.7 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.4548, allocations: 0.8547 MB / 478.6 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.4559, allocations: 0.4924 MB / 479.1 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.492e-05/0.456, allocations: 12.98 kB / 479.1 MB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.689e-05/0.4561, allocations: 51.5 kB / 479.1 MB, free: 10.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=83): time 2.475e-06/0.4561, allocations: 0 / 479.1 MB, free: 10.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.005733/0.4618, allocations: 2.706 MB / 481.8 MB, free: 7.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.034e-05/0.4619, allocations: 115.8 kB / 481.9 MB, free: 7.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002412/0.4644, allocations: 1.573 MB / 483.5 MB, free: 5.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.887e-05/0.4645, allocations: 45.7 kB / 483.6 MB, free: 5.605 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.4657, allocations: 1.32 MB / 484.9 MB, free: 4.273 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003643/0.466, allocations: 353.1 kB / 485.2 MB, free: 3.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004364/0.4665, allocations: 307.4 kB / 485.5 MB, free: 3.617 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4666, allocations: 301.1 kB / 485.8 MB, free: 3.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009276/0.4675, allocations: 424.6 kB / 486.2 MB, free: 2.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.469, allocations: 1.1 MB / 487.3 MB, free: 1.469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002471/0.4715, allocations: 1.612 MB / 488.9 MB, free: 15.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.369e-05/0.4715, allocations: 8 kB / 488.9 MB, free: 15.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003286/0.4748, allocations: 1.678 MB / 490.6 MB, free: 13.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.4749, allocations: 20.03 kB / 490.6 MB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.931e-05/0.4749, allocations: 28 kB / 490.7 MB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002132/0.4751, allocations: 56.84 kB / 490.7 MB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.4764, allocations: 399.3 kB / 491.1 MB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.4778, allocations: 1.418 MB / 492.5 MB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.4792, allocations: 92.06 kB / 492.6 MB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.4794, allocations: 87.94 kB / 492.7 MB, free: 11.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001567/0.481, allocations: 0.7498 MB / 493.5 MB, free: 10.85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001422/0.4824, allocations: 1.084 MB / 494.5 MB, free: 9.438 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002295/0.4847, allocations: 1.561 MB / 496.1 MB, free: 7.543 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.306e-05/0.4847, allocations: 8 kB / 496.1 MB, free: 7.535 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.003072/0.4878, allocations: 1.634 MB / 497.7 MB, free: 5.895 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.4878, allocations: 16 kB / 497.8 MB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.712e-05/0.4879, allocations: 20 kB / 497.8 MB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001461/0.488, allocations: 61.56 kB / 497.8 MB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.4893, allocations: 387.3 kB / 498.2 MB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.4906, allocations: 1.421 MB / 499.6 MB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.4919, allocations: 75.97 kB / 499.7 MB, free: 3.777 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.492, allocations: 84.09 kB / 499.8 MB, free: 3.695 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 3 (switch.control,dcdcInverter2.idealDcDc.powerController.local_reset,dcdcInverter1.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 211 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004037/0.4925, allocations: 307.5 kB / 0.4884 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003203/0.4928, allocations: 182.8 kB / 0.4885 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002011/0.4948, allocations: 0.9146 MB / 0.4894 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.4948, allocations: 8 kB / 0.4895 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4948, allocations: 0 / 0.4895 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.4949, allocations: 7.984 kB / 0.4895 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005341/0.5002, allocations: 2.882 MB / 0.4923 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.5002, allocations: 4 kB / 0.4923 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009339/0.5012, allocations: 192.2 kB / 0.4925 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001117/0.5013, allocations: 20.84 kB / 0.4925 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.089e-05/0.5014, allocations: 28 kB / 0.4925 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.5025, allocations: 1.382 MB / 0.4939 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.5025, allocations: 4 kB / 0.4939 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002672/0.5052, allocations: 1.464 MB / 0.4953 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008213/0.506, allocations: 335.8 kB / 0.4956 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002017/0.5063, allocations: 27.98 kB / 0.4956 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007663/0.507, allocations: 55.95 kB / 0.4957 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.5072, allocations: 64.45 kB / 0.4958 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.296e-05/0.5073, allocations: 28 kB / 0.4958 GB, free: 11.46 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002047/0.5094, allocations: 1.031 MB / 0.4968 GB, free: 10.44 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5094, allocations: 3.938 kB / 0.4968 GB, free: 10.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002987/0.5124, allocations: 0.7617 MB / 0.4975 GB, free: 9.672 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.la.i,coupling.flange_a.phi,dcdcInverter1.vDCFilter.y,dcdcInverter1.iMotFilter.y,dcdcInverter1.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003547/0.5159, allocations: 2.056 MB / 0.4995 GB, free: 7.535 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004427/0.5204, allocations: 2.019 MB / 0.5015 GB, free: 5.504 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/0.5204, allocations: 4 kB / 0.5015 GB, free: 5.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.5215, allocations: 0.5148 MB / 0.502 GB, free: 4.973 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002458/0.5239, allocations: 453.3 kB / 0.5025 GB, free: 4.547 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03116/0.5551, allocations: 14.74 MB / 0.5168 GB, free: 4.844 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001549/0.5567, allocations: 1.475 MB / 0.5183 GB, free: 3.336 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001123/0.5579, allocations: 250.3 kB / 0.5185 GB, free: 3.086 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/0.5591, allocations: 0.9132 MB / 0.5194 GB, free: 2.172 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.5592, allocations: 0 / 0.5194 GB, free: 2.172 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3373/0.8964, allocations: 37.75 MB / 0.5563 GB, free: 116.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/14.88, allocations: 0 / 0.5563 GB, free: 116.6 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)