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.001114/0.001114, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 63.2 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08805/0.08935, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1543/0.2437, allocations: 23.4 MB / 381 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008968/0.2527, allocations: 6.837 MB / 387.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001888/0.2546, allocations: 99.88 kB / 387.9 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.2561, allocations: 0.807 MB / 388.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001526/0.2577, allocations: 0.8741 MB / 389.6 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.2588, allocations: 0.7968 MB / 390.4 MB, free: 3.273 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002357/0.2612, allocations: 3.456 MB / 393.9 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001874/0.263, allocations: 1.974 MB / 395.8 MB, free: 388 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.2644, allocations: 1.292 MB / 397.1 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.2655, allocations: 1.402 MB / 398.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003664/0.2659, allocations: 380.6 kB / 398.9 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005577/0.2665, allocations: 418.8 kB / 399.3 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004557/0.2669, allocations: 0.711 MB / 400 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.2681, allocations: 1.607 MB / 401.6 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003166/0.2713, allocations: 4.441 MB / 406.1 MB, free: 9.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2713, allocations: 4 kB / 406.1 MB, free: 9.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2713, allocations: 0 / 406.1 MB, free: 9.785 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.935e-05/0.2714, allocations: 4 kB / 406.1 MB, free: 9.781 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.004171/0.2755, allocations: 3.048 MB / 409.1 MB, free: 7.602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.2756, allocations: 11.27 kB / 409.1 MB, free: 7.598 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003166/0.2759, allocations: 351.3 kB / 409.5 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007656/0.2767, allocations: 370.6 kB / 409.8 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.2784, allocations: 1.456 MB / 411.3 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.2785, allocations: 199 kB / 411.5 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002435/0.2788, allocations: 263.2 kB / 411.7 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003368/0.2822, allocations: 2.469 MB / 414.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.152e-05/0.2822, allocations: 15.84 kB / 414.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001726/0.2824, allocations: 100 kB / 414.3 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-05/0.2825, allocations: 64 kB / 414.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002786/0.2852, allocations: 1.662 MB / 416.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01051/0.2958, allocations: 10.3 MB / 426.4 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.2973, allocations: 0.8589 MB / 427.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008812/0.2982, allocations: 492.2 kB / 427.7 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.047e-05/0.2983, allocations: 12.94 kB / 427.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.2983, allocations: 51.5 kB / 427.8 MB, free: 5.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.074e-06/0.2983, allocations: 0 / 427.8 MB, free: 5.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.00419/0.3025, allocations: 2.663 MB / 430.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.3026, allocations: 119.7 kB / 430.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/0.3043, allocations: 1.569 MB / 432.1 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.917e-05/0.3043, allocations: 45.7 kB / 432.1 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007421/0.3051, allocations: 1.281 MB / 433.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.3053, allocations: 335.4 kB / 433.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003388/0.3056, allocations: 307.2 kB / 434.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.073e-05/0.3057, allocations: 301.1 kB / 434.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007419/0.3065, allocations: 420.6 kB / 434.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/0.3076, allocations: 1.108 MB / 435.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.3095, allocations: 1.608 MB / 437.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/0.3096, allocations: 8 kB / 437.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002446/0.312, allocations: 1.676 MB / 439.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.312, allocations: 22.75 kB / 439.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.3121, allocations: 24 kB / 439.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001401/0.3122, allocations: 56.78 kB / 439.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.3133, allocations: 399.7 kB / 439.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009015/0.3142, allocations: 1.429 MB / 441.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008655/0.3151, allocations: 87.86 kB / 441.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.283e-05/0.3152, allocations: 84.09 kB / 441.2 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001102/0.3163, allocations: 0.7471 MB / 442 MB, free: 6.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001008/0.3173, allocations: 1.076 MB / 443.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001708/0.3191, allocations: 1.565 MB / 444.6 MB, free: 2.883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.184e-06/0.3191, allocations: 4 kB / 444.6 MB, free: 2.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.00224/0.3213, allocations: 1.63 MB / 446.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3214, allocations: 16 kB / 446.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.3214, allocations: 24 kB / 446.3 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.775e-05/0.3215, allocations: 52.84 kB / 446.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.3225, allocations: 387.3 kB / 446.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008165/0.3234, allocations: 1.429 MB / 448.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00082/0.3242, allocations: 75.91 kB / 448.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.96e-05/0.3243, allocations: 84 kB / 448.3 MB, free: 15.04 MB / 366.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.000222/0.3245, allocations: 307.5 kB / 448.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.3247, allocations: 173.8 kB / 448.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.3262, allocations: 0.9032 MB / 449.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.3262, allocations: 15.94 kB / 449.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.3263, allocations: 0 / 449.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.3263, allocations: 3.984 kB / 449.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003641/0.3299, allocations: 2.883 MB / 452.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3299, allocations: 4.469 kB / 452.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007451/0.3307, allocations: 191.7 kB / 452.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-05/0.3308, allocations: 28.84 kB / 452.8 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.66e-05/0.3308, allocations: 24 kB / 452.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007954/0.3316, allocations: 1.39 MB / 454.2 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.3316, allocations: 8.156 kB / 454.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.3337, allocations: 1.446 MB / 455.7 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003736/0.3341, allocations: 326.8 kB / 456 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.3342, allocations: 31.98 kB / 456 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006401/0.3349, allocations: 51.95 kB / 456.1 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.335, allocations: 68.45 kB / 456.2 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.582e-05/0.3351, allocations: 24 kB / 456.2 MB, free: 6.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001163/0.3362, allocations: 1.031 MB / 457.2 MB, free: 5.797 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3362, allocations: 0 / 457.2 MB, free: 5.797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001801/0.338, allocations: 0.7656 MB / 458 MB, free: 5.031 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.002455/0.3405, allocations: 2.043 MB / 460 MB, free: 2.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003113/0.3436, allocations: 2.047 MB / 462.1 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.3436, allocations: 4 kB / 462.1 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007552/0.3444, allocations: 0.5217 MB / 462.6 MB, free: 320 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.346, allocations: 447.2 kB / 463 MB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01864/0.3646, allocations: 16.73 MB / 479.8 MB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.3657, allocations: 1.475 MB / 481.2 MB, free: 11.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009985/0.3667, allocations: 242.3 kB / 481.5 MB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009249/0.3676, allocations: 0.9132 MB / 482.4 MB, free: 10.66 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3676, allocations: 0 / 482.4 MB, free: 10.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2539/0.6215, allocations: 36.82 MB / 0.507 GB, free: 6.137 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.87, allocations: 15.75 kB / 0.507 GB, free: 6.121 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)