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.001371/0.001371, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001566/0.001566, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 67.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.276, allocations: 50.55 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.0267/0.3028, allocations: 23.39 MB / 432.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.3179, allocations: 6.874 MB / 439.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004994/0.3229, allocations: 95.69 kB / 439.2 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003096/0.326, allocations: 0.8142 MB / 440 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003725/0.3298, allocations: 0.8716 MB / 440.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001997/0.3319, allocations: 0.8115 MB / 441.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005116/0.337, allocations: 3.472 MB / 445.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002864/0.3399, allocations: 1.974 MB / 447.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002162/0.342, allocations: 1.296 MB / 448.4 MB, free: 9.668 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001801/0.3439, allocations: 1.404 MB / 449.8 MB, free: 8.258 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005545/0.3444, allocations: 380 kB / 450.2 MB, free: 7.887 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008223/0.3453, allocations: 420 kB / 450.6 MB, free: 7.477 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006886/0.3459, allocations: 0.7047 MB / 451.3 MB, free: 6.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001778/0.3477, allocations: 1.614 MB / 452.9 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005501/0.3532, allocations: 4.526 MB / 457.5 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3533, allocations: 3.938 kB / 457.5 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.3533, allocations: 0 / 457.5 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001567/0.3535, allocations: 0 / 457.5 MB, free: 0.6016 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.006476/0.3599, allocations: 3.13 MB / 460.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.36, allocations: 8.031 kB / 460.6 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004187/0.3604, allocations: 351 kB / 460.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009298/0.3614, allocations: 382.9 kB / 461.3 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002508/0.3639, allocations: 1.498 MB / 462.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.3641, allocations: 201.3 kB / 463 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003388/0.3644, allocations: 267.9 kB / 463.3 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004199/0.3686, allocations: 2.454 MB / 465.7 MB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.317e-05/0.3687, allocations: 15.94 kB / 465.7 MB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001978/0.3689, allocations: 104 kB / 465.8 MB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.271e-05/0.3689, allocations: 64 kB / 465.9 MB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003286/0.3722, allocations: 1.654 MB / 467.6 MB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01438/0.3866, allocations: 10.23 MB / 477.8 MB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001834/0.3885, allocations: 0.8588 MB / 478.7 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.3896, allocations: 0.4918 MB / 479.1 MB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.897e-05/0.3897, allocations: 9 kB / 479.2 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.3897, allocations: 47.5 kB / 479.2 MB, free: 10.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=83): time 2.786e-06/0.3897, allocations: 0 / 479.2 MB, free: 10.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.005604/0.3954, allocations: 2.711 MB / 481.9 MB, free: 7.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.893e-05/0.3955, allocations: 115.8 kB / 482 MB, free: 7.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002371/0.3978, allocations: 1.573 MB / 483.6 MB, free: 5.586 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.821e-05/0.3979, allocations: 41.7 kB / 483.6 MB, free: 5.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.399, allocations: 1.328 MB / 485 MB, free: 4.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003012/0.3993, allocations: 353.1 kB / 485.3 MB, free: 3.852 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004133/0.3997, allocations: 303.4 kB / 485.6 MB, free: 3.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3999, allocations: 305.1 kB / 485.9 MB, free: 3.246 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008606/0.4007, allocations: 420.7 kB / 486.3 MB, free: 2.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.4022, allocations: 1.104 MB / 487.4 MB, free: 1.395 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002329/0.4045, allocations: 1.608 MB / 489 MB, free: 15.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/0.4045, allocations: 4 kB / 489 MB, free: 15.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003111/0.4076, allocations: 1.693 MB / 490.7 MB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.4077, allocations: 23.06 kB / 490.8 MB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.001e-05/0.4077, allocations: 28 kB / 490.8 MB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002038/0.4079, allocations: 53.56 kB / 490.8 MB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.4092, allocations: 399.3 kB / 491.2 MB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001206/0.4104, allocations: 1.418 MB / 492.6 MB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.4116, allocations: 88.02 kB / 492.7 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.4117, allocations: 80 kB / 492.8 MB, free: 11.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001524/0.4132, allocations: 0.746 MB / 493.5 MB, free: 10.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001305/0.4146, allocations: 1.084 MB / 494.6 MB, free: 9.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002208/0.4168, allocations: 1.565 MB / 496.2 MB, free: 7.477 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.216e-05/0.4168, allocations: 11.94 kB / 496.2 MB, free: 7.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.003028/0.4198, allocations: 1.638 MB / 497.8 MB, free: 5.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.4199, allocations: 15.98 kB / 497.9 MB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.4199, allocations: 27.98 kB / 497.9 MB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001444/0.4201, allocations: 52.86 kB / 497.9 MB, free: 5.723 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.4213, allocations: 391.6 kB / 498.3 MB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.4224, allocations: 1.425 MB / 499.8 MB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.4236, allocations: 75.97 kB / 499.8 MB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.4238, allocations: 80 kB / 499.9 MB, free: 3.617 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.0004211/0.4242, allocations: 307.4 kB / 0.4885 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002896/0.4245, allocations: 186.9 kB / 0.4887 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.4264, allocations: 0.9107 MB / 0.4895 GB, free: 2.203 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.4264, allocations: 8 kB / 0.4896 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.4264, allocations: 8 kB / 0.4896 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.4265, allocations: 3.984 kB / 0.4896 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004818/0.4313, allocations: 2.878 MB / 0.4924 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4313, allocations: 4 kB / 0.4924 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008263/0.4321, allocations: 179.8 kB / 0.4926 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001177/0.4323, allocations: 37.25 kB / 0.4926 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.918e-05/0.4324, allocations: 27.98 kB / 0.4926 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.4334, allocations: 1.375 MB / 0.494 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.4335, allocations: 4 kB / 0.494 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.436, allocations: 1.471 MB / 0.4954 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000606/0.4366, allocations: 327.8 kB / 0.4957 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.4368, allocations: 24 kB / 0.4957 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006939/0.4375, allocations: 55.95 kB / 0.4958 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.4377, allocations: 64.45 kB / 0.4958 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.348e-05/0.4377, allocations: 31.98 kB / 0.4959 GB, free: 11.39 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001545/0.4393, allocations: 1.028 MB / 0.4969 GB, free: 10.37 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4393, allocations: 0 / 0.4969 GB, free: 10.37 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002375/0.4417, allocations: 0.7578 MB / 0.4976 GB, free: 9.609 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.003096/0.4448, allocations: 2.067 MB / 0.4996 GB, free: 7.461 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003983/0.4488, allocations: 2.022 MB / 0.5016 GB, free: 5.426 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.467e-06/0.4488, allocations: 4 kB / 0.5016 GB, free: 5.422 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009514/0.4498, allocations: 0.5155 MB / 0.5021 GB, free: 4.895 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/0.4519, allocations: 438.2 kB / 0.5025 GB, free: 4.48 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02359/0.4755, allocations: 14.74 MB / 0.5169 GB, free: 4.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/0.4768, allocations: 1.475 MB / 0.5184 GB, free: 3.262 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001015/0.4778, allocations: 250.2 kB / 0.5186 GB, free: 3.012 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/0.4789, allocations: 0.9132 MB / 0.5195 GB, free: 2.098 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.479, allocations: 0 / 0.5195 GB, free: 2.098 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6549/1.134, allocations: 37.75 MB / 0.5564 GB, free: 116.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.59, allocations: 3.375 kB / 0.5564 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 & /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)