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.0009363/0.0009363, allocations: 99.8 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009716/0.0009716, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.3 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002601/0.0002601, allocations: 4 kB / 306.7 MB, free: 1.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.108, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.2342/0.3422, allocations: 18.81 MB / 377 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.3588, allocations: 6.718 MB / 383.7 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006654/0.3655, allocations: 95.97 kB / 383.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005351/0.3709, allocations: 0.8349 MB / 384.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009254/0.3802, allocations: 1.521 MB / 386.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005197/0.3854, allocations: 0.9063 MB / 387.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008219/0.3937, allocations: 2.338 MB / 389.4 MB, free: 4.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002848/0.3966, allocations: 1.287 MB / 390.7 MB, free: 4.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00275/0.3993, allocations: 0.939 MB / 391.6 MB, free: 3.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002661/0.402, allocations: 1.071 MB / 392.7 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005006/0.4025, allocations: 150.5 kB / 392.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001084/0.4036, allocations: 195.8 kB / 393.1 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003903/0.404, allocations: 440.7 kB / 393.5 MB, free: 3.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000854/0.4049, allocations: 0.5627 MB / 394.1 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004579/0.4095, allocations: 3.555 MB / 397.6 MB, free: 176 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.4095, allocations: 0 / 397.6 MB, free: 176 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.4095, allocations: 0 / 397.6 MB, free: 176 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002097/0.4097, allocations: 0 / 397.6 MB, free: 176 kB / 302.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.007165/0.4169, allocations: 2.602 MB / 400.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.417, allocations: 8.844 kB / 400.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008334/0.4178, allocations: 358 kB / 400.6 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.4191, allocations: 373.2 kB / 400.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003059/0.4222, allocations: 1.421 MB / 402.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.4224, allocations: 193.7 kB / 402.5 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003901/0.4228, allocations: 271.7 kB / 402.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005087/0.4279, allocations: 2.436 MB / 405.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.325e-05/0.428, allocations: 6.594 kB / 405.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002056/0.4282, allocations: 110.9 kB / 405.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.737e-05/0.4282, allocations: 65.62 kB / 405.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003506/0.4317, allocations: 1.672 MB / 407.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01615/0.4479, allocations: 10.34 MB / 417.4 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.4497, allocations: 0.8708 MB / 418.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.881e-05/0.4498, allocations: 9 kB / 418.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.4499, allocations: 47.55 kB / 418.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.715e-06/0.4499, allocations: 0 / 418.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005982/0.4559, allocations: 2.751 MB / 421.1 MB, free: 12.53 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.862e-05/0.456, allocations: 111.8 kB / 421.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/0.4583, allocations: 1.53 MB / 422.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.236e-05/0.4584, allocations: 41.7 kB / 422.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009625/0.4594, allocations: 1.281 MB / 424.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000299/0.4597, allocations: 343.2 kB / 424.4 MB, free: 9.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.566e-05/0.4598, allocations: 32 kB / 424.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4599, allocations: 365.9 kB / 424.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007954/0.4607, allocations: 419.7 kB / 425.2 MB, free: 8.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.462, allocations: 1.112 MB / 426.3 MB, free: 6.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.463, allocations: 0.5924 MB / 426.9 MB, free: 6.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.463, allocations: 4 kB / 426.9 MB, free: 6.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.0031/0.4662, allocations: 1.696 MB / 428.6 MB, free: 4.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00479/0.471, allocations: 9.531 MB / 438.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.24e-05/0.4711, allocations: 20 kB / 438.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002901/0.4714, allocations: 60.8 kB / 438.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.4728, allocations: 411.3 kB / 438.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.4742, allocations: 1.331 MB / 439.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.4762, allocations: 96.05 kB / 440 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.4763, allocations: 84 kB / 440.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.4763, allocations: 4 kB / 440.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002659/0.479, allocations: 1.45 MB / 441.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.509e-05/0.479, allocations: 31.97 kB / 441.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001486/0.4792, allocations: 57.56 kB / 441.7 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.4804, allocations: 387.4 kB / 442 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009905/0.4814, allocations: 1.331 MB / 443.4 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.4828, allocations: 83.88 kB / 443.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.483, allocations: 80 kB / 443.5 MB, free: 4.902 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.001413/0.4844, allocations: 0.5592 MB / 444.1 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003722/0.4848, allocations: 177.8 kB / 444.3 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001856/0.4866, allocations: 0.9306 MB / 445.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.4867, allocations: 11.98 kB / 445.2 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.4867, allocations: 0 / 445.2 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-05/0.4867, allocations: 11.94 kB / 445.2 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005532/0.4922, allocations: 2.879 MB / 448.1 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.4923, allocations: 4 kB / 448.1 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008614/0.4931, allocations: 192.1 kB / 448.3 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001393/0.4933, allocations: 32.84 kB / 448.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-05/0.4934, allocations: 24 kB / 448.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001009/0.4944, allocations: 1.299 MB / 449.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.4944, allocations: 7.938 kB / 449.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002928/0.4973, allocations: 1.697 MB / 451.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000981/0.4983, allocations: 326.8 kB / 451.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002045/0.4985, allocations: 20 kB / 451.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007312/0.4993, allocations: 67.95 kB / 451.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.4994, allocations: 64.47 kB / 451.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.665e-05/0.4995, allocations: 31.98 kB / 451.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001668/0.5012, allocations: 0.9924 MB / 452.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.815e-06/0.5012, allocations: 0 / 452.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002796/0.504, allocations: 0.7656 MB / 453.6 MB, free: 10.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.003539/0.5075, allocations: 3.2 MB / 456.8 MB, free: 7.074 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00402/0.5116, allocations: 2.039 MB / 458.8 MB, free: 5.027 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.5116, allocations: 4 kB / 458.9 MB, free: 5.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009497/0.5126, allocations: 0.538 MB / 459.4 MB, free: 4.473 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/0.5149, allocations: 397.5 kB / 459.8 MB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03069/0.5456, allocations: 27.61 MB / 487.4 MB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/0.5469, allocations: 1.526 MB / 488.9 MB, free: 5.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001404/0.5483, allocations: 246.3 kB / 489.2 MB, free: 5.523 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/0.5495, allocations: 0.9171 MB / 490.1 MB, free: 4.605 MB / 398.1 MB Notification: Performance of SimCode: time 3.066e-06/0.5496, allocations: 0 / 490.1 MB, free: 4.605 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07379/0.6234, allocations: 34.49 MB / 0.5123 GB, free: 2.453 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002694/0.6237, allocations: 225.6 kB / 0.5125 GB, free: 2.207 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.887/3.511, allocations: 0 / 0.5125 GB, free: 2.207 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/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)