Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.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: translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor") translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008483/0.0008483, allocations: 95.58 kB / 16.3 MB, free: 5.992 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.0009183/0.0009184, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.208/1.208, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2823/0.2823, allocations: 38.06 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000268/0.000268, allocations: 12 kB / 400 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2335, allocations: 59.15 MB / 459.1 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.004126/0.2377, allocations: 4.382 MB / 463.5 MB, free: 26.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.2396, allocations: 1.518 MB / 465 MB, free: 25.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001818/0.2398, allocations: 26.12 kB / 465.1 MB, free: 25.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.2399, allocations: 78.41 kB / 465.1 MB, free: 25.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004762/0.2404, allocations: 231.6 kB / 465.4 MB, free: 25.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005479/0.241, allocations: 240 kB / 465.6 MB, free: 25.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004059/0.2414, allocations: 335.4 kB / 465.9 MB, free: 25.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006162/0.242, allocations: 385.6 kB / 466.3 MB, free: 25.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002544/0.2423, allocations: 202.7 kB / 466.5 MB, free: 25.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004081/0.2427, allocations: 299.1 kB / 466.8 MB, free: 25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.531e-05/0.2428, allocations: 22.88 kB / 466.8 MB, free: 25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002804/0.2431, allocations: 144 kB / 466.9 MB, free: 24.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002122/0.2433, allocations: 212 kB / 467.2 MB, free: 24.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.2434, allocations: 125.9 kB / 467.3 MB, free: 24.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005684/0.244, allocations: 0.5336 MB / 467.8 MB, free: 24.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.244, allocations: 0 / 467.8 MB, free: 24.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.244, allocations: 0 / 467.8 MB, free: 24.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.244, allocations: 0 / 467.8 MB, free: 24.71 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001112/0.2451, allocations: 0.7888 MB / 468.6 MB, free: 24.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2452, allocations: 9.25 kB / 468.6 MB, free: 24.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005082/0.2457, allocations: 102.4 kB / 468.7 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005484/0.2462, allocations: 417.6 kB / 469.1 MB, free: 23.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.2463, allocations: 30.64 kB / 469.1 MB, free: 23.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.972e-05/0.2464, allocations: 42.98 kB / 469.2 MB, free: 23.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.2475, allocations: 0.852 MB / 470 MB, free: 23.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.2475, allocations: 4.969 kB / 470 MB, free: 23.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.148e-05/0.2475, allocations: 17.06 kB / 470.1 MB, free: 23.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.2477, allocations: 63.55 kB / 470.1 MB, free: 23.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.2487, allocations: 0.7876 MB / 470.9 MB, free: 23.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003005/0.2517, allocations: 2.726 MB / 473.6 MB, free: 21.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007068/0.2525, allocations: 0.5715 MB / 474.2 MB, free: 21.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.207e-05/0.2525, allocations: 13.09 kB / 474.2 MB, free: 21.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.933e-05/0.2525, allocations: 41.5 kB / 474.3 MB, free: 20.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 1.703e-06/0.2525, allocations: 0 / 474.3 MB, free: 20.98 MB / 350.1 MB Internal error: BackendDAEEXT.getAssignment failed because n=56>arrayLength(ass1)=56 or m=78>arrayLength(ass2)=56 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!