Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 114.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.411/1.411, allocations: 230.6 MB / 250.5 MB, free: 9.371 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 214.7 kB / 306.7 MB, free: 4.309 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04236/0.04236, allocations: 8.905 MB / 371.7 MB, free: 3.445 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002821/0.002821, allocations: 79.89 kB / 496.5 MB, free: 9.812 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.282, allocations: 55.56 MB / 0.5391 GB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01244/0.2944, allocations: 14.09 MB / 0.5528 GB, free: 16.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008223/0.3026, allocations: 4.716 MB / 0.5574 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002852/0.3055, allocations: 108.7 kB / 0.5576 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003614/0.3091, allocations: 1.094 MB / 0.5586 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005106/0.3142, allocations: 1.318 MB / 0.5599 GB, free: 11.59 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.003067/0.3173, allocations: 0.9127 MB / 0.5608 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005624/0.3229, allocations: 3.847 MB / 0.5646 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004919/0.3278, allocations: 2.347 MB / 0.5668 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004261/0.3321, allocations: 1.839 MB / 0.5686 GB, free: 7.012 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005355/0.3374, allocations: 2.13 MB / 0.5707 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002125/0.3395, allocations: 0.4915 MB / 0.5712 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003519/0.3431, allocations: 0.715 MB / 0.5719 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002222/0.3453, allocations: 1.083 MB / 0.573 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006911/0.3522, allocations: 2.041 MB / 0.575 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01154/0.3637, allocations: 6.466 MB / 0.5813 GB, free: 15.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.697e-06/0.3637, allocations: 1.094 kB / 0.5813 GB, free: 15.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3637, allocations: 0 / 0.5813 GB, free: 15.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002696/0.364, allocations: 0 / 0.5813 GB, free: 15.93 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01577/0.3798, allocations: 4.304 MB / 0.5855 GB, free: 12.97 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.3798, allocations: 9.688 kB / 0.5855 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000167/0.38, allocations: 95.78 kB / 0.5856 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001938/0.3819, allocations: 0.4903 MB / 0.5861 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005228/0.3872, allocations: 0.7511 MB / 0.5868 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00704/0.3942, allocations: 2.343 MB / 0.5891 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003679/0.3946, allocations: 242.4 kB / 0.5893 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001412/0.396, allocations: 310.2 kB / 0.5896 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01235/0.4083, allocations: 4.177 MB / 0.5937 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000133/0.4085, allocations: 11.89 kB / 0.5937 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009081/0.4094, allocations: 132 kB / 0.5938 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001809/0.4096, allocations: 142.3 kB / 0.594 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008585/0.4181, allocations: 3.511 MB / 0.5974 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02746/0.4456, allocations: 13.21 MB / 0.6103 GB, free: 4.484 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006737/0.4523, allocations: 5.7 MB / 0.6158 GB, free: 13.99 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002271/0.4546, allocations: 1.005 MB / 0.6168 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007085/0.4617, allocations: 3.453 MB / 0.6202 GB, free: 9.387 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.935e-05/0.4617, allocations: 51.56 kB / 0.6202 GB, free: 9.328 MB / 430.1 MB Notification: Performance of pre-optimization done (n=109): time 3.446e-06/0.4618, allocations: 0 / 0.6202 GB, free: 9.328 MB / 430.1 MB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.8977716360241175] Failed to read output from testmodel.py, exit status != 0: 0.4820789310033433 0.49638026100000004 0.129023714 Calling exit ...