Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 92.41 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009668/0.0009669, allocations: 179.7 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.493/0.493, allocations: 38.07 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002965, allocations: 8 kB / 400 MB, free: 9.191 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.355, allocations: 59.16 MB / 459.2 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.006584/0.3617, allocations: 6.239 MB / 465.4 MB, free: 25.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004322/0.3661, allocations: 2.222 MB / 467.7 MB, free: 24.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006911/0.3668, allocations: 48.38 kB / 467.7 MB, free: 24.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003842/0.3672, allocations: 132 kB / 467.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.3685, allocations: 373.8 kB / 468.2 MB, free: 23.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001585/0.3701, allocations: 390.7 kB / 468.6 MB, free: 23.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001182/0.3713, allocations: 467.8 kB / 469 MB, free: 23.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001768/0.373, allocations: 0.7742 MB / 469.8 MB, free: 23.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000818/0.3739, allocations: 298.5 kB / 470.1 MB, free: 22.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007445/0.3746, allocations: 352.5 kB / 470.5 MB, free: 22.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.807e-05/0.3747, allocations: 29.41 kB / 470.5 MB, free: 22.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005948/0.3753, allocations: 147.4 kB / 470.6 MB, free: 22.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005757/0.3759, allocations: 357.5 kB / 471 MB, free: 22.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002705/0.3762, allocations: 168.1 kB / 471.1 MB, free: 22.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001545/0.3778, allocations: 0.7484 MB / 471.9 MB, free: 22.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3778, allocations: 0 / 471.9 MB, free: 22.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.3778, allocations: 5.031 kB / 471.9 MB, free: 22.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.93e-05/0.3778, allocations: 0 / 471.9 MB, free: 22.44 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002279/0.3801, allocations: 0.9306 MB / 472.8 MB, free: 21.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.777e-05/0.3802, allocations: 14.44 kB / 472.8 MB, free: 21.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002553/0.3804, allocations: 133.4 kB / 473 MB, free: 21.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009569/0.3814, allocations: 149.6 kB / 473.1 MB, free: 21.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.3827, allocations: 0.5033 MB / 473.6 MB, free: 21.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.219e-05/0.3827, allocations: 56.34 kB / 473.7 MB, free: 21.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.3829, allocations: 77.58 kB / 473.8 MB, free: 21.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00206/0.385, allocations: 1.106 MB / 474.9 MB, free: 20.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.585e-05/0.385, allocations: 12.67 kB / 474.9 MB, free: 20.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.766e-05/0.3851, allocations: 36.23 kB / 474.9 MB, free: 20.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.124e-05/0.3852, allocations: 52.03 kB / 475 MB, free: 20.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.387, allocations: 0.8484 MB / 475.8 MB, free: 20.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006234/0.3933, allocations: 5.07 MB / 480.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007809/0.3941, allocations: 405 kB / 481.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.212e-05/0.3942, allocations: 14.19 kB / 481.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.866e-05/0.3942, allocations: 44.91 kB / 481.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 3.497e-06/0.3943, allocations: 0 / 481.3 MB, free: 15.7 MB / 350.1 MB Internal error: BackendDAEEXT.getAssignment failed because n=43>arrayLength(ass1)=43 or m=67>arrayLength(ass2)=43 Error: Internal error It is not possible to select continuous time states because Number of Equations 1 greater than number of States 0 to select from. Error: Internal error - IndexReduction.dynamicStateSelectionWork failed!