Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.001278/0.001278, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] 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.001427/0.001427, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.391/1.391, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 44.02 kB / 378.5 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2138, allocations: 53.36 MB / 431.9 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03597/0.2498, allocations: 32.51 MB / 464.4 MB, free: 6.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02031/0.2701, allocations: 9.955 MB / 474.4 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006191/0.2763, allocations: 330.2 kB / 474.7 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0201/0.2964, allocations: 8.595 MB / 483.3 MB, free: 3.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01225/0.3087, allocations: 4.036 MB / 487.3 MB, free: 15.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006732/0.3154, allocations: 2.418 MB / 489.7 MB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01822/0.3336, allocations: 14.34 MB / 0.4923 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02611/0.3597, allocations: 17.12 MB / 0.509 GB, free: 13.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01087/0.3706, allocations: 7.391 MB / 0.5162 GB, free: 5.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01333/0.3839, allocations: 8.156 MB / 0.5242 GB, free: 13.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004688/0.3886, allocations: 2.027 MB / 0.5261 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006538/0.3951, allocations: 2.445 MB / 0.5285 GB, free: 9.023 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005472/0.4006, allocations: 4.044 MB / 0.5325 GB, free: 4.969 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.365/0.7656, allocations: 6.104 MB / 0.5384 GB, free: 32.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02084/0.7864, allocations: 27.18 MB / 0.565 GB, free: 27.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.7864, allocations: 0 / 0.565 GB, free: 27.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.7864, allocations: 0 / 0.565 GB, free: 27.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005528/0.787, allocations: 0 / 0.565 GB, free: 27.5 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04236/0.8294, allocations: 16.11 MB / 0.5807 GB, free: 20.4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.8294, allocations: 7.719 kB / 0.5807 GB, free: 20.4 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002766/0.8297, allocations: 372.6 kB / 0.5811 GB, free: 20.33 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005655/0.8353, allocations: 1.937 MB / 0.583 GB, free: 19.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03246/0.8678, allocations: 6.419 MB / 0.5892 GB, free: 16.65 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01541/0.8832, allocations: 8.665 MB / 0.5977 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005607/0.8838, allocations: 0.9041 MB / 0.5986 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003358/0.8871, allocations: 1.199 MB / 0.5998 GB, free: 9.402 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03737/0.9245, allocations: 19.06 MB / 0.6184 GB, free: 6.215 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002437/0.9247, allocations: 23.73 kB / 0.6184 GB, free: 6.195 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001436/0.9262, allocations: 0.4962 MB / 0.6189 GB, free: 5.711 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006509/0.9268, allocations: 0.6498 MB / 0.6195 GB, free: 5.059 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03045/0.9573, allocations: 17.05 MB / 0.6362 GB, free: 4.008 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09428/1.052, allocations: 55.42 MB / 0.6903 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02038/1.072, allocations: 10.86 MB / 0.7009 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005661/1.078, allocations: 3.691 MB / 0.7045 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01665/1.094, allocations: 9.161 MB / 0.7134 GB, free: 5.977 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.598e-05/1.094, allocations: 84.83 kB / 0.7135 GB, free: 5.891 MB / 0.545 GB Notification: Performance of pre-optimization done (n=406): time 6.743e-06/1.094, allocations: 0 / 0.7135 GB, free: 5.891 MB / 0.545 GB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.2354669669875875] Failed to read output from testmodel.py, exit status != 0: ['time', 'Itr', 'Iqs', 'loadInertiaM.phi', 'loadInertiaM.w', 'loadInertiaMQS.phi', 'loadInertiaMQS.w', 'smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', 'smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im'] 1.1513922900194302 1.165130704 0.375698067 Calling exit ...