Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001714/0.001714, allocations: 119.7 kB / 19.17 MB, free: 3.898 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.002157/0.002157, allocations: 207.3 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 207.6 MB / 232.5 MB, free: 3.945 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.001697/0.001697, allocations: 51.17 kB / 343 MB, free: 9.977 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08792/0.08962, allocations: 49.12 MB / 392.2 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04097/0.1306, allocations: 37.5 MB / 429.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0222/0.1528, allocations: 10.05 MB / 439.7 MB, free: 8.953 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007446/0.1602, allocations: 286.4 kB / 440 MB, free: 8.672 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02198/0.1822, allocations: 9.228 MB / 449.2 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01394/0.1962, allocations: 4.036 MB / 453.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007898/0.2041, allocations: 2.449 MB / 455.7 MB, free: 8.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2166/0.4207, allocations: 14.24 MB / 469.9 MB, free: 7.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02757/0.4482, allocations: 19.29 MB / 489.2 MB, free: 5.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01067/0.4589, allocations: 7.415 MB / 496.6 MB, free: 2.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01493/0.4738, allocations: 8.464 MB / 0.4933 GB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006894/0.4807, allocations: 2.218 MB / 0.4954 GB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01491/0.4956, allocations: 3.161 MB / 0.4985 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007155/0.5028, allocations: 4.101 MB / 0.5025 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01522/0.518, allocations: 7.894 MB / 0.5102 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03687/0.5549, allocations: 27.05 MB / 0.5367 GB, free: 8.734 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.5549, allocations: 4 kB / 0.5367 GB, free: 8.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5549, allocations: 0 / 0.5367 GB, free: 8.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007632/0.5556, allocations: 1.594 kB / 0.5367 GB, free: 8.73 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.05055/0.6062, allocations: 16.31 MB / 0.5526 GB, free: 8.406 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/0.6063, allocations: 19.89 kB / 0.5526 GB, free: 8.387 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004156/0.6067, allocations: 370.5 kB / 0.553 GB, free: 8.012 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006692/0.6134, allocations: 1.96 MB / 0.5549 GB, free: 6.055 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04272/0.6561, allocations: 7.462 MB / 0.5622 GB, free: 14.67 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01816/0.6742, allocations: 7.805 MB / 0.5698 GB, free: 7.176 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001023/0.6753, allocations: 0.9115 MB / 0.5707 GB, free: 6.273 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004693/0.68, allocations: 1.214 MB / 0.5719 GB, free: 5.074 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04912/0.7291, allocations: 19.24 MB / 0.5906 GB, free: 1.785 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005311/0.7296, allocations: 19.89 kB / 0.5907 GB, free: 1.766 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003975/0.7336, allocations: 0.5006 MB / 0.5912 GB, free: 1.281 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008058/0.7344, allocations: 0.6854 MB / 0.5918 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04008/0.7745, allocations: 17.69 MB / 0.6091 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4438/1.218, allocations: 63.31 MB / 0.6709 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02493/1.243, allocations: 38.19 MB / 0.7082 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005608/1.249, allocations: 3.83 MB / 0.712 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01839/1.267, allocations: 12.35 MB / 0.724 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/1.267, allocations: 85.31 kB / 0.7241 GB, free: 118.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=406): time 5.801e-06/1.267, allocations: 3.938 kB / 0.7241 GB, free: 118.4 MB / 0.5294 GB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.4431875909795053] 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.3175358069711365 1.32560025 0.768369893 Calling exit ...