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.001402/0.001402, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 61.03 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07798/0.07918, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1615/0.2407, allocations: 23.4 MB / 381 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.2509, allocations: 6.836 MB / 387.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002798/0.2537, allocations: 103 kB / 387.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001945/0.2557, allocations: 0.7997 MB / 388.7 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002096/0.2578, allocations: 0.8702 MB / 389.6 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.2593, allocations: 0.806 MB / 390.4 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003051/0.2623, allocations: 3.451 MB / 393.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002113/0.2644, allocations: 1.969 MB / 395.8 MB, free: 416 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00158/0.266, allocations: 1.289 MB / 397.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.2673, allocations: 1.402 MB / 398.5 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004061/0.2678, allocations: 384.2 kB / 398.9 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006428/0.2684, allocations: 424.5 kB / 399.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004991/0.2689, allocations: 0.7099 MB / 400 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.2703, allocations: 1.602 MB / 401.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003682/0.274, allocations: 4.441 MB / 406.1 MB, free: 9.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.274, allocations: 1.25 kB / 406.1 MB, free: 9.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.274, allocations: 0 / 406.1 MB, free: 9.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.669e-05/0.2741, allocations: 0 / 406.1 MB, free: 9.789 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.00491/0.279, allocations: 3.05 MB / 409.1 MB, free: 7.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.279, allocations: 8.5 kB / 409.1 MB, free: 7.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003817/0.2794, allocations: 366.9 kB / 409.5 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008831/0.2803, allocations: 369.2 kB / 409.8 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002009/0.2823, allocations: 1.454 MB / 411.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.2825, allocations: 199.2 kB / 411.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002788/0.2828, allocations: 268.2 kB / 411.7 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00386/0.2866, allocations: 2.458 MB / 414.2 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.507e-05/0.2867, allocations: 11.84 kB / 414.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001983/0.2869, allocations: 112 kB / 414.3 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.694e-05/0.287, allocations: 64 kB / 414.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003219/0.2902, allocations: 1.655 MB / 416 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01215/0.3023, allocations: 10.3 MB / 426.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/0.3041, allocations: 0.8586 MB / 427.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009884/0.3051, allocations: 0.4885 MB / 427.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.729e-05/0.3051, allocations: 9 kB / 427.7 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.3052, allocations: 43.5 kB / 427.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.264e-06/0.3052, allocations: 3.938 kB / 427.7 MB, free: 5.363 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.004825/0.31, allocations: 2.667 MB / 430.4 MB, free: 2.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/0.3101, allocations: 123.8 kB / 430.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001915/0.312, allocations: 1.569 MB / 432.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.666e-05/0.3121, allocations: 45.7 kB / 432.1 MB, free: 0.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008218/0.3129, allocations: 1.281 MB / 433.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000238/0.3132, allocations: 331.3 kB / 433.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003756/0.3136, allocations: 307.2 kB / 434.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.3137, allocations: 301.1 kB / 434.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008367/0.3145, allocations: 420.6 kB / 434.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.3158, allocations: 1.108 MB / 435.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002169/0.318, allocations: 1.607 MB / 437.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.318, allocations: 8 kB / 437.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002804/0.3208, allocations: 1.68 MB / 439.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.3208, allocations: 19.62 kB / 439.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/0.3209, allocations: 24 kB / 439.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.321, allocations: 60.84 kB / 439.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.3223, allocations: 387.4 kB / 439.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.3234, allocations: 1.433 MB / 441.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.3244, allocations: 91.92 kB / 441.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.3245, allocations: 84 kB / 441.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001298/0.3258, allocations: 0.7471 MB / 442 MB, free: 6.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00117/0.327, allocations: 1.08 MB / 443.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001999/0.329, allocations: 1.557 MB / 444.6 MB, free: 2.883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.668e-06/0.329, allocations: 12 kB / 444.6 MB, free: 2.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002597/0.3316, allocations: 1.625 MB / 446.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3317, allocations: 16 kB / 446.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/0.3317, allocations: 24.72 kB / 446.3 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001069/0.3318, allocations: 56.78 kB / 446.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.333, allocations: 387.3 kB / 446.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009635/0.334, allocations: 1.429 MB / 448.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000959/0.335, allocations: 80.09 kB / 448.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.8e-05/0.3351, allocations: 80 kB / 448.3 MB, free: 15.03 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.000261/0.3353, allocations: 299.5 kB / 448.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.3356, allocations: 173.8 kB / 448.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/0.3373, allocations: 0.9071 MB / 449.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3374, allocations: 8 kB / 449.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3374, allocations: 4 kB / 449.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.527e-06/0.3374, allocations: 3.984 kB / 449.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004207/0.3416, allocations: 2.89 MB / 452.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3416, allocations: 0 / 452.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008565/0.3425, allocations: 187.7 kB / 452.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.579e-05/0.3426, allocations: 37.25 kB / 452.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.113e-05/0.3426, allocations: 20 kB / 452.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009121/0.3436, allocations: 1.394 MB / 454.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.3436, allocations: 7.938 kB / 454.2 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002338/0.3459, allocations: 1.446 MB / 455.7 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004255/0.3464, allocations: 322.8 kB / 456 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.3466, allocations: 23.98 kB / 456 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000744/0.3473, allocations: 55.95 kB / 456.1 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.3474, allocations: 72.45 kB / 456.2 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.49e-05/0.3475, allocations: 24 kB / 456.2 MB, free: 6.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001329/0.3488, allocations: 1.028 MB / 457.2 MB, free: 5.797 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3488, allocations: 4 kB / 457.2 MB, free: 5.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002094/0.3509, allocations: 0.7656 MB / 458 MB, free: 5.027 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.002787/0.3537, allocations: 2.039 MB / 460 MB, free: 2.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003562/0.3573, allocations: 2.053 MB / 462.1 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3573, allocations: 0 / 462.1 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008634/0.3582, allocations: 0.5278 MB / 462.6 MB, free: 312 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.36, allocations: 442.4 kB / 463 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02092/0.381, allocations: 16.72 MB / 479.7 MB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.3821, allocations: 1.475 MB / 481.2 MB, free: 11.81 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0011/0.3832, allocations: 250.3 kB / 481.5 MB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/0.3842, allocations: 0.9132 MB / 482.4 MB, free: 10.65 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3842, allocations: 0 / 482.4 MB, free: 10.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06647/0.4507, allocations: 36.82 MB / 0.507 GB, free: 6.129 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.501/9.952, allocations: 15.69 kB / 0.507 GB, free: 6.113 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 & 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)