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.00117/0.001169, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 199.9 kB / 18.74 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.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001297, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2727, 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.02524/0.298, allocations: 23.4 MB / 432.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01328/0.3114, allocations: 6.839 MB / 439 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004253/0.3157, allocations: 99.69 kB / 439.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003172/0.3189, allocations: 0.8415 MB / 439.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003849/0.3228, allocations: 0.9301 MB / 440.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002008/0.3248, allocations: 0.7999 MB / 441.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004699/0.3295, allocations: 3.479 MB / 445.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002614/0.3321, allocations: 1.97 MB / 447.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001947/0.3341, allocations: 1.312 MB / 448.4 MB, free: 9.664 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002097/0.3362, allocations: 1.404 MB / 449.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008481/0.3371, allocations: 380 kB / 450.2 MB, free: 7.883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.3382, allocations: 424 kB / 450.6 MB, free: 7.469 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008604/0.3391, allocations: 0.7047 MB / 451.3 MB, free: 6.762 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002474/0.3416, allocations: 1.606 MB / 452.9 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005414/0.347, allocations: 4.534 MB / 457.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.347, allocations: 0 / 457.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.347, allocations: 0 / 457.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001006/0.3471, allocations: 0 / 457.5 MB, free: 0.5977 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.005906/0.353, allocations: 3.118 MB / 460.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.687e-05/0.3531, allocations: 12.03 kB / 460.6 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000446/0.3536, allocations: 359 kB / 460.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.3547, allocations: 378.9 kB / 461.3 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00266/0.3574, allocations: 1.502 MB / 462.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.3575, allocations: 197.3 kB / 463 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003276/0.3578, allocations: 264 kB / 463.3 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004386/0.3622, allocations: 2.465 MB / 465.7 MB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.47e-05/0.3623, allocations: 11.92 kB / 465.7 MB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001906/0.3625, allocations: 108 kB / 465.9 MB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.554e-05/0.3626, allocations: 64 kB / 465.9 MB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003133/0.3657, allocations: 1.654 MB / 467.6 MB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01392/0.3796, allocations: 10.23 MB / 477.8 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/0.3814, allocations: 0.8625 MB / 478.7 MB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.3825, allocations: 0.4885 MB / 479.1 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.118e-05/0.3826, allocations: 12.98 kB / 479.2 MB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.3826, allocations: 47.5 kB / 479.2 MB, free: 10.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=83): time 4.138e-06/0.3827, allocations: 3.984 kB / 479.2 MB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.005892/0.3886, allocations: 2.71 MB / 481.9 MB, free: 7.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.38e-05/0.3887, allocations: 123.7 kB / 482 MB, free: 7.141 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.3908, allocations: 1.569 MB / 483.6 MB, free: 5.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/0.3909, allocations: 41.7 kB / 483.7 MB, free: 5.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009142/0.3918, allocations: 1.324 MB / 485 MB, free: 4.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/0.3921, allocations: 349.1 kB / 485.3 MB, free: 3.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004046/0.3925, allocations: 303.4 kB / 485.6 MB, free: 3.539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3926, allocations: 305.1 kB / 485.9 MB, free: 3.238 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008218/0.3935, allocations: 420.6 kB / 486.3 MB, free: 2.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0012/0.3947, allocations: 1.108 MB / 487.4 MB, free: 1.383 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002122/0.3968, allocations: 1.608 MB / 489 MB, free: 15.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.3968, allocations: 4 kB / 489 MB, free: 15.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002905/0.3998, allocations: 1.685 MB / 490.7 MB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.3998, allocations: 19.94 kB / 490.7 MB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.63e-05/0.3998, allocations: 32.02 kB / 490.8 MB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.4, allocations: 52.8 kB / 490.8 MB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.4013, allocations: 395.4 kB / 491.2 MB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.4024, allocations: 1.426 MB / 492.6 MB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.4036, allocations: 92 kB / 492.7 MB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.4037, allocations: 84 kB / 492.8 MB, free: 11.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001343/0.405, allocations: 0.746 MB / 493.6 MB, free: 10.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001155/0.4062, allocations: 1.08 MB / 494.6 MB, free: 9.359 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001959/0.4081, allocations: 1.557 MB / 496.2 MB, free: 7.469 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.908e-06/0.4082, allocations: 11.94 kB / 496.2 MB, free: 7.457 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.00258/0.4108, allocations: 1.634 MB / 497.8 MB, free: 5.816 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.4108, allocations: 16 kB / 497.9 MB, free: 5.801 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.4108, allocations: 24 kB / 497.9 MB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/0.4109, allocations: 57.5 kB / 497.9 MB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.4121, allocations: 391.3 kB / 498.3 MB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.4132, allocations: 1.421 MB / 499.7 MB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.4143, allocations: 71.97 kB / 499.8 MB, free: 3.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.404e-05/0.4144, allocations: 84.09 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.0003273/0.4147, allocations: 311.5 kB / 0.4885 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/0.415, allocations: 190.8 kB / 0.4887 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.4167, allocations: 0.9107 MB / 0.4895 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.4167, allocations: 8 kB / 0.4896 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.4167, allocations: 0 / 0.4896 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4168, allocations: 3.984 kB / 0.4896 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004375/0.4211, allocations: 2.878 MB / 0.4924 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.4212, allocations: 4 kB / 0.4924 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008255/0.422, allocations: 192.2 kB / 0.4926 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/0.4221, allocations: 28.84 kB / 0.4926 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.214e-05/0.4222, allocations: 24 kB / 0.4926 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009593/0.4231, allocations: 1.382 MB / 0.494 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.4231, allocations: 4 kB / 0.494 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.4255, allocations: 1.467 MB / 0.4954 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004878/0.426, allocations: 327.8 kB / 0.4957 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001818/0.4261, allocations: 27.98 kB / 0.4957 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007176/0.4269, allocations: 55.95 kB / 0.4958 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.427, allocations: 68.45 kB / 0.4958 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-05/0.427, allocations: 24 kB / 0.4959 GB, free: 11.38 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001372/0.4284, allocations: 1.031 MB / 0.4969 GB, free: 10.36 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4284, allocations: 4 kB / 0.4969 GB, free: 10.36 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002201/0.4306, allocations: 0.7617 MB / 0.4976 GB, free: 9.594 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.002719/0.4334, allocations: 2.063 MB / 0.4996 GB, free: 7.449 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003395/0.4368, allocations: 2.014 MB / 0.5016 GB, free: 5.422 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4368, allocations: 1.875 kB / 0.5016 GB, free: 5.422 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008584/0.4377, allocations: 0.5225 MB / 0.5021 GB, free: 4.887 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/0.4396, allocations: 444.6 kB / 0.5025 GB, free: 4.469 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02095/0.4606, allocations: 14.74 MB / 0.5169 GB, free: 4.758 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001459/0.4621, allocations: 1.471 MB / 0.5184 GB, free: 3.254 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.4631, allocations: 242.3 kB / 0.5186 GB, free: 3.012 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/0.4642, allocations: 0.9249 MB / 0.5195 GB, free: 2.086 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4642, allocations: 0 / 0.5195 GB, free: 2.086 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2567/0.7209, allocations: 37.73 MB / 0.5564 GB, free: 116.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/13.12, allocations: 3.5 kB / 0.5564 GB, free: 116.7 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)