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.001132/0.001132, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2508, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.02535/0.2762, allocations: 23.4 MB / 432.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.2899, allocations: 6.831 MB / 439 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004611/0.2946, allocations: 103.6 kB / 439.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003318/0.298, allocations: 0.8142 MB / 439.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003782/0.3018, allocations: 0.8677 MB / 440.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002478/0.3043, allocations: 0.8076 MB / 441.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005239/0.3095, allocations: 3.476 MB / 445.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003823/0.3134, allocations: 1.977 MB / 447 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002749/0.3161, allocations: 1.308 MB / 448.3 MB, free: 9.746 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002252/0.3184, allocations: 1.4 MB / 449.7 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001047/0.3195, allocations: 380 kB / 450.1 MB, free: 7.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001134/0.3206, allocations: 420 kB / 450.5 MB, free: 7.559 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008818/0.3215, allocations: 0.7125 MB / 451.2 MB, free: 6.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002655/0.3242, allocations: 1.606 MB / 452.8 MB, free: 5.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005398/0.3296, allocations: 4.516 MB / 457.4 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3296, allocations: 0 / 457.4 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3297, allocations: 3.938 kB / 457.4 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001496/0.3298, allocations: 0 / 457.4 MB, free: 0.6953 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.007084/0.3369, allocations: 3.047 MB / 460.4 MB, free: 13.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.337, allocations: 12.03 kB / 460.4 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007282/0.3377, allocations: 351 kB / 460.8 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001262/0.339, allocations: 369.2 kB / 461.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002991/0.342, allocations: 1.489 MB / 462.6 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.3422, allocations: 197.3 kB / 462.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005086/0.3427, allocations: 267.9 kB / 463.1 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004589/0.3473, allocations: 2.457 MB / 465.5 MB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-05/0.3474, allocations: 7.906 kB / 465.5 MB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001933/0.3476, allocations: 108 kB / 465.6 MB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.591e-05/0.3476, allocations: 64 kB / 465.7 MB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003287/0.3509, allocations: 1.658 MB / 467.4 MB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01441/0.3653, allocations: 10.19 MB / 477.6 MB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.3671, allocations: 0.8588 MB / 478.4 MB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.3682, allocations: 0.4885 MB / 478.9 MB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.391e-05/0.3683, allocations: 16.98 kB / 478.9 MB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.3684, allocations: 47.48 kB / 479 MB, free: 10.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=83): time 2.565e-06/0.3684, allocations: 0 / 479 MB, free: 10.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.005564/0.3739, allocations: 2.667 MB / 481.6 MB, free: 7.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.374, allocations: 119.8 kB / 481.7 MB, free: 7.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002586/0.3766, allocations: 1.565 MB / 483.3 MB, free: 5.859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.692e-05/0.3767, allocations: 45.7 kB / 483.4 MB, free: 5.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008925/0.3776, allocations: 1.288 MB / 484.6 MB, free: 4.504 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002907/0.3779, allocations: 331.4 kB / 485 MB, free: 4.176 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004525/0.3784, allocations: 307.2 kB / 485.3 MB, free: 3.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3785, allocations: 301.1 kB / 485.6 MB, free: 3.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000895/0.3794, allocations: 416.7 kB / 486 MB, free: 3.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.3807, allocations: 1.115 MB / 487.1 MB, free: 1.711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002155/0.3829, allocations: 1.608 MB / 488.7 MB, free: 15.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.615e-05/0.3829, allocations: 4 kB / 488.7 MB, free: 15.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003373/0.3863, allocations: 1.676 MB / 490.4 MB, free: 14.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/0.3864, allocations: 19.94 kB / 490.4 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.984e-05/0.3864, allocations: 28.72 kB / 490.4 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002306/0.3867, allocations: 56.84 kB / 490.5 MB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.388, allocations: 395.3 kB / 490.9 MB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.3891, allocations: 1.426 MB / 492.3 MB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.3904, allocations: 88 kB / 492.4 MB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.3906, allocations: 83.98 kB / 492.5 MB, free: 11.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001595/0.3922, allocations: 0.7421 MB / 493.2 MB, free: 11.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001186/0.3934, allocations: 1.08 MB / 494.3 MB, free: 9.703 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002013/0.3954, allocations: 1.576 MB / 495.9 MB, free: 7.793 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.895e-05/0.3955, allocations: 8 kB / 495.9 MB, free: 7.785 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.003066/0.3985, allocations: 1.629 MB / 497.5 MB, free: 6.148 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.3986, allocations: 16 kB / 497.5 MB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.82e-05/0.3986, allocations: 24 kB / 497.5 MB, free: 6.109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001527/0.3988, allocations: 56.84 kB / 497.6 MB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.4, allocations: 387.8 kB / 498 MB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/0.401, allocations: 1.421 MB / 499.4 MB, free: 4.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.4023, allocations: 75.88 kB / 499.5 MB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4024, allocations: 80 kB / 499.5 MB, free: 3.953 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.0003812/0.4028, allocations: 311.5 kB / 499.8 MB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004031/0.4032, allocations: 173.8 kB / 0.4883 GB, free: 3.469 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/0.4052, allocations: 0.903 MB / 0.4892 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.4053, allocations: 12 kB / 0.4892 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.4053, allocations: 4 kB / 0.4892 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.4053, allocations: 3.984 kB / 0.4892 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00524/0.4105, allocations: 2.89 MB / 0.492 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.4106, allocations: 4 kB / 0.492 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008703/0.4114, allocations: 176.2 kB / 0.4922 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001168/0.4116, allocations: 32.84 kB / 0.4922 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.811e-05/0.4117, allocations: 24 kB / 0.4922 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009354/0.4126, allocations: 1.39 MB / 0.4936 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.4126, allocations: 4 kB / 0.4936 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002503/0.4151, allocations: 1.447 MB / 0.495 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007057/0.4158, allocations: 322.8 kB / 0.4953 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003576/0.4162, allocations: 28 kB / 0.4954 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008899/0.4171, allocations: 55.95 kB / 0.4954 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.4173, allocations: 68.44 kB / 0.4955 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.197e-05/0.4173, allocations: 24 kB / 0.4955 GB, free: 11.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001711/0.419, allocations: 1.028 MB / 0.4965 GB, free: 10.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.419, allocations: 8 kB / 0.4965 GB, free: 10.72 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002996/0.422, allocations: 0.7617 MB / 0.4972 GB, free: 9.961 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.002992/0.425, allocations: 2.055 MB / 0.4993 GB, free: 7.824 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003768/0.4288, allocations: 2.01 MB / 0.5012 GB, free: 5.801 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.4289, allocations: 7.938 kB / 0.5012 GB, free: 5.793 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009112/0.4298, allocations: 0.516 MB / 0.5017 GB, free: 5.266 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/0.4322, allocations: 441.2 kB / 0.5021 GB, free: 4.852 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02488/0.4571, allocations: 14.65 MB / 0.5165 GB, free: 5.234 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001581/0.4587, allocations: 1.475 MB / 0.5179 GB, free: 3.727 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001305/0.4601, allocations: 242.3 kB / 0.5181 GB, free: 3.484 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/0.4614, allocations: 0.9171 MB / 0.519 GB, free: 2.566 MB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4614, allocations: 0 / 0.519 GB, free: 2.566 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2772/0.7386, allocations: 38.11 MB / 0.5562 GB, free: 116.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.26, allocations: 4.062 kB / 0.5563 GB, free: 116.9 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)