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.0008526/0.0008526, allocations: 101.9 kB / 17.01 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 197.1 kB / 17.91 MB, free: 5.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.3 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002685/0.0002688, allocations: 8 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 51.5 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.2346/0.3557, allocations: 20.67 MB / 379 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01645/0.3722, allocations: 6.468 MB / 385.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006314/0.3786, allocations: 96.44 kB / 385.5 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003635/0.3822, allocations: 0.6269 MB / 386.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005589/0.3878, allocations: 0.7058 MB / 386.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002383/0.3902, allocations: 473.7 kB / 387.3 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007587/0.3978, allocations: 3.119 MB / 390.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002991/0.4009, allocations: 1.294 MB / 391.8 MB, free: 3.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003344/0.4042, allocations: 0.9572 MB / 392.7 MB, free: 3.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003525/0.4078, allocations: 1.094 MB / 393.8 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000636/0.4084, allocations: 154.1 kB / 394 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.4095, allocations: 191.4 kB / 394.1 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003594/0.4099, allocations: 455.8 kB / 394.6 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008685/0.4108, allocations: 0.5665 MB / 395.2 MB, free: 2.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004141/0.4149, allocations: 3.581 MB / 398.7 MB, free: 15.81 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.4149, allocations: 0 / 398.7 MB, free: 15.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4149, allocations: 1.125 kB / 398.7 MB, free: 15.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001563/0.4151, allocations: 0 / 398.7 MB, free: 15.81 MB / 318.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.006238/0.4213, allocations: 2.61 MB / 401.3 MB, free: 13.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.4214, allocations: 9.812 kB / 401.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006842/0.4221, allocations: 350.4 kB / 401.7 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.4233, allocations: 369.5 kB / 402.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002559/0.4258, allocations: 1.404 MB / 403.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.426, allocations: 194.7 kB / 403.7 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003574/0.4264, allocations: 266.2 kB / 403.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004714/0.4311, allocations: 2.466 MB / 406.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.948e-05/0.4312, allocations: 6.594 kB / 406.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/0.4314, allocations: 107.7 kB / 406.5 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-05/0.4314, allocations: 62.88 kB / 406.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003271/0.4347, allocations: 1.676 MB / 408.2 MB, free: 9.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01482/0.4495, allocations: 10.39 MB / 418.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.4513, allocations: 0.8669 MB / 419.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009536/0.4523, allocations: 0.493 MB / 420 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.647e-05/0.4524, allocations: 12.98 kB / 420 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.4524, allocations: 47.56 kB / 420 MB, free: 13.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.575e-06/0.4524, allocations: 0 / 420 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005561/0.458, allocations: 2.774 MB / 422.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.542e-05/0.4581, allocations: 111.8 kB / 422.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002255/0.4604, allocations: 1.549 MB / 424.5 MB, free: 9.305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.4604, allocations: 41.7 kB / 424.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009711/0.4614, allocations: 1.292 MB / 425.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003288/0.4618, allocations: 339.4 kB / 426.1 MB, free: 7.613 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.786e-05/0.4618, allocations: 32 kB / 426.2 MB, free: 7.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.462, allocations: 365.9 kB / 426.5 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008467/0.4629, allocations: 423.8 kB / 426.9 MB, free: 6.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.4643, allocations: 1.123 MB / 428.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.4654, allocations: 0.5885 MB / 428.6 MB, free: 4.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.4654, allocations: 8 kB / 428.7 MB, free: 4.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003321/0.4687, allocations: 1.708 MB / 430.4 MB, free: 3.031 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007542/0.4695, allocations: 0.7779 MB / 431.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.041e-05/0.4695, allocations: 24 kB / 431.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002276/0.4698, allocations: 60.84 kB / 431.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.471, allocations: 407.3 kB / 431.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.4723, allocations: 1.327 MB / 432.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.4737, allocations: 95.98 kB / 433 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.4738, allocations: 80 kB / 433.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.315e-06/0.4738, allocations: 4 kB / 433.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002381/0.4762, allocations: 1.466 MB / 434.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.877e-05/0.4762, allocations: 24 kB / 434.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001364/0.4764, allocations: 60.78 kB / 434.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.4775, allocations: 387.7 kB / 435.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009832/0.4785, allocations: 1.338 MB / 436.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.4798, allocations: 79.97 kB / 436.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.182e-05/0.4799, allocations: 80 kB / 436.5 MB, free: 12.25 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001131/0.4811, allocations: 0.5523 MB / 437.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000263/0.4813, allocations: 181.9 kB / 437.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.4831, allocations: 0.9422 MB / 438.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.4831, allocations: 8 kB / 438.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.4831, allocations: 8 kB / 438.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.4831, allocations: 3.984 kB / 438.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004447/0.4876, allocations: 2.926 MB / 441.2 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.4876, allocations: 4 kB / 441.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007879/0.4884, allocations: 191.7 kB / 441.4 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.4885, allocations: 33.06 kB / 441.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.102e-05/0.4885, allocations: 24 kB / 441.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008513/0.4894, allocations: 1.288 MB / 442.7 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.4894, allocations: 7.938 kB / 442.7 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002329/0.4918, allocations: 1.508 MB / 444.2 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006279/0.4924, allocations: 326.8 kB / 444.5 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/0.4926, allocations: 24 kB / 444.6 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006617/0.4933, allocations: 67.95 kB / 444.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.4934, allocations: 68.45 kB / 444.7 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.217e-05/0.4935, allocations: 35.94 kB / 444.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001433/0.4949, allocations: 1.008 MB / 445.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4949, allocations: 0 / 445.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00265/0.4976, allocations: 0.7656 MB / 446.5 MB, free: 1.949 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0029/0.5005, allocations: 2.102 MB / 448.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003811/0.5043, allocations: 2.055 MB / 450.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/0.5043, allocations: 4 kB / 450.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009799/0.5053, allocations: 0.5265 MB / 451.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002604/0.5079, allocations: 425.1 kB / 451.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02302/0.531, allocations: 11.81 MB / 463.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/0.5325, allocations: 1.471 MB / 464.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001533/0.534, allocations: 246.3 kB / 465.1 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/0.5353, allocations: 0.9132 MB / 466 MB, free: 13.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.573e-06/0.5354, allocations: 0 / 466 MB, free: 13.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07812/0.6135, allocations: 34.8 MB / 0.4891 GB, free: 10.82 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002121/0.6137, allocations: 219.7 kB / 0.4893 GB, free: 10.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.996/3.61, allocations: 0 / 0.4893 GB, free: 10.58 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)