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.001561/0.001561, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001971/0.001971, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.4 MB, free: 9.141 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 60.19 kB / 306.6 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08684/0.08808, allocations: 50.53 MB / 357.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1718/0.2599, allocations: 23.11 MB / 380.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.2708, allocations: 6.632 MB / 386.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00403/0.2749, allocations: 102.6 kB / 386.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002325/0.2773, allocations: 0.6716 MB / 387.6 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002369/0.2796, allocations: 0.733 MB / 388.3 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.281, allocations: 0.7106 MB / 389.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00352/0.2846, allocations: 3.458 MB / 392.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002295/0.2869, allocations: 1.972 MB / 394.5 MB, free: 1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001762/0.2886, allocations: 1.291 MB / 395.8 MB, free: 296 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.2902, allocations: 1.407 MB / 397.2 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004423/0.2907, allocations: 380.4 kB / 397.6 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000727/0.2914, allocations: 421.7 kB / 398 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004796/0.2919, allocations: 0.7112 MB / 398.7 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.2932, allocations: 1.607 MB / 400.3 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003643/0.2969, allocations: 4.438 MB / 404.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2969, allocations: 0 / 404.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2969, allocations: 0 / 404.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.52e-05/0.297, allocations: 1.094 kB / 404.7 MB, free: 10.63 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.005058/0.302, allocations: 3.058 MB / 407.8 MB, free: 8.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.3021, allocations: 9.281 kB / 407.8 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003729/0.3025, allocations: 349.5 kB / 408.1 MB, free: 8.172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000972/0.3035, allocations: 366.7 kB / 408.5 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002111/0.3056, allocations: 1.456 MB / 409.9 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.3057, allocations: 197.7 kB / 410.1 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002942/0.306, allocations: 263.1 kB / 410.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004464/0.3105, allocations: 2.47 MB / 412.9 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.657e-05/0.3106, allocations: 11.84 kB / 412.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001837/0.3108, allocations: 107.9 kB / 413 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-05/0.3108, allocations: 64 kB / 413 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003015/0.3138, allocations: 1.654 MB / 414.7 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0127/0.3265, allocations: 10.31 MB / 425 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.3283, allocations: 0.8512 MB / 425.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009639/0.3293, allocations: 492.2 kB / 426.3 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.766e-05/0.3294, allocations: 9 kB / 426.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.3294, allocations: 47.5 kB / 426.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 3.206e-06/0.3294, allocations: 4 kB / 426.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005107/0.3346, allocations: 2.678 MB / 429.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/0.3346, allocations: 119.7 kB / 429.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.3366, allocations: 1.569 MB / 430.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.163e-05/0.3366, allocations: 41.7 kB / 430.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007698/0.3374, allocations: 1.277 MB / 432.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002367/0.3377, allocations: 343.3 kB / 432.4 MB, free: 368 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003662/0.338, allocations: 295.3 kB / 432.7 MB, free: 68 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.325e-05/0.3381, allocations: 305.1 kB / 433 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007972/0.339, allocations: 424.6 kB / 433.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.3402, allocations: 1.111 MB / 434.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002032/0.3422, allocations: 1.607 MB / 436.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.3422, allocations: 8 kB / 436.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002769/0.345, allocations: 1.677 MB / 437.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.345, allocations: 19.94 kB / 437.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.777e-05/0.3451, allocations: 27.98 kB / 437.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.3453, allocations: 48.8 kB / 437.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.3465, allocations: 399.4 kB / 438.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.3476, allocations: 1.425 MB / 439.7 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/0.3488, allocations: 87.86 kB / 439.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.415e-05/0.3489, allocations: 76 kB / 439.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001404/0.3504, allocations: 0.7549 MB / 440.6 MB, free: 7.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001128/0.3515, allocations: 1.08 MB / 441.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0019/0.3534, allocations: 1.565 MB / 443.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.377e-06/0.3534, allocations: 4 kB / 443.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002905/0.3563, allocations: 1.622 MB / 444.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3564, allocations: 20.16 kB / 444.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/0.3564, allocations: 24 kB / 445 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001369/0.3565, allocations: 52.84 kB / 445 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.3578, allocations: 391.3 kB / 445.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009818/0.3588, allocations: 1.433 MB / 446.8 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.36, allocations: 71.97 kB / 446.9 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.083e-05/0.3601, allocations: 80 kB / 447 MB, free: 156 kB / 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 (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.0003763/0.3605, allocations: 304.4 kB / 447.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.3607, allocations: 177.8 kB / 447.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/0.3625, allocations: 0.8993 MB / 448.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3625, allocations: 15.94 kB / 448.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3626, allocations: 4 kB / 448.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.3626, allocations: 3.984 kB / 448.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004403/0.367, allocations: 2.894 MB / 451.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.367, allocations: 4 kB / 451.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000881/0.3679, allocations: 184.2 kB / 451.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.368, allocations: 28.84 kB / 451.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.094e-05/0.3681, allocations: 24 kB / 451.5 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009796/0.3691, allocations: 1.39 MB / 452.9 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3691, allocations: 4 kB / 452.9 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.3714, allocations: 1.45 MB / 454.3 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00057/0.372, allocations: 326.8 kB / 454.7 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001991/0.3722, allocations: 31.98 kB / 454.7 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007351/0.3729, allocations: 51.95 kB / 454.7 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.3731, allocations: 64.45 kB / 454.8 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.856e-05/0.3731, allocations: 35.94 kB / 454.8 MB, free: 7.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00132/0.3744, allocations: 1.028 MB / 455.9 MB, free: 6.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3745, allocations: 0 / 455.9 MB, free: 6.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002357/0.3768, allocations: 0.7617 MB / 456.6 MB, free: 6.141 MB / 366.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.002706/0.3795, allocations: 2.047 MB / 458.7 MB, free: 4.023 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003846/0.3834, allocations: 2.047 MB / 460.7 MB, free: 1.961 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.3834, allocations: 4 kB / 460.7 MB, free: 1.957 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008645/0.3843, allocations: 0.5226 MB / 461.2 MB, free: 1.418 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/0.3864, allocations: 452.2 kB / 461.7 MB, free: 1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03274/0.4191, allocations: 17.72 MB / 479.4 MB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002107/0.4213, allocations: 1.475 MB / 480.9 MB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002316/0.4236, allocations: 242.3 kB / 481.1 MB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/0.4256, allocations: 0.9211 MB / 482 MB, free: 10.77 MB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4257, allocations: 3.938 kB / 482 MB, free: 10.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09319/0.5189, allocations: 36.53 MB / 0.5064 GB, free: 6.574 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002667/0.5192, allocations: 241.2 kB / 0.5067 GB, free: 6.312 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/3.112, allocations: 0 / 0.5067 GB, free: 6.312 MB / 430.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/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)