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.005454/0.005454, allocations: 114 kB / 21.97 MB, free: 5.227 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.001575/0.001575, allocations: 212.3 kB / 25.28 MB, free: 3.25 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.285/1.285, allocations: 207.6 MB / 236 MB, free: 9.984 MB / 190.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.001637/0.001637, allocations: 51.92 kB / 348 MB, free: 9.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2383, allocations: 49.15 MB / 397.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03682/0.2751, allocations: 37.57 MB / 434.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02277/0.2979, allocations: 10.06 MB / 444.8 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007249/0.3051, allocations: 282.4 kB / 445.1 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02183/0.327, allocations: 9.267 MB / 454.4 MB, free: 9.941 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01527/0.3422, allocations: 4.122 MB / 458.5 MB, free: 5.797 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008028/0.3503, allocations: 2.492 MB / 461 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0204/0.3707, allocations: 14.36 MB / 475.3 MB, free: 4.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03363/0.4043, allocations: 17.11 MB / 492.4 MB, free: 3.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01284/0.4171, allocations: 7.457 MB / 499.9 MB, free: 12.15 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01396/0.4311, allocations: 8.105 MB / 0.4961 GB, free: 4.016 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005491/0.4366, allocations: 2.039 MB / 0.4981 GB, free: 1.977 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007561/0.4441, allocations: 2.445 MB / 0.5005 GB, free: 15.53 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006475/0.4506, allocations: 4.099 MB / 0.5045 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01516/0.4658, allocations: 7.898 MB / 0.5122 GB, free: 3.492 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03706/0.5028, allocations: 27.06 MB / 0.5386 GB, free: 8.348 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.5028, allocations: 0 / 0.5386 GB, free: 8.348 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5028, allocations: 0 / 0.5386 GB, free: 8.348 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006793/0.5035, allocations: 0 / 0.5386 GB, free: 8.348 MB / 462.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.0458/0.5493, allocations: 16.24 MB / 0.5545 GB, free: 7.988 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.5494, allocations: 11.98 kB / 0.5545 GB, free: 7.977 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003699/0.5497, allocations: 378.4 kB / 0.5548 GB, free: 7.602 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00617/0.5559, allocations: 1.964 MB / 0.5568 GB, free: 5.625 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3502/0.9061, allocations: 7.458 MB / 0.5641 GB, free: 129.5 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01588/0.922, allocations: 7.809 MB / 0.5717 GB, free: 126.8 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007953/0.9228, allocations: 0.9151 MB / 0.5726 GB, free: 126.4 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00415/0.927, allocations: 1.217 MB / 0.5738 GB, free: 126 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04208/0.9691, allocations: 19.24 MB / 0.5925 GB, free: 117.6 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004033/0.9695, allocations: 21.56 kB / 0.5926 GB, free: 117.6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002869/0.9723, allocations: 0.4963 MB / 0.5931 GB, free: 117.2 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005684/0.9729, allocations: 0.6866 MB / 0.5937 GB, free: 117.1 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02779/1.001, allocations: 17.68 MB / 0.611 GB, free: 99.73 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08181/1.082, allocations: 61.38 MB / 0.6709 GB, free: 38.02 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02024/1.103, allocations: 12.59 MB / 0.6832 GB, free: 26.95 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00541/1.108, allocations: 3.814 MB / 0.687 GB, free: 23.13 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01898/1.127, allocations: 11.96 MB / 0.6986 GB, free: 11.43 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.513e-05/1.127, allocations: 81.81 kB / 0.6987 GB, free: 11.33 MB / 478.1 MB Notification: Performance of pre-optimization done (n=406): time 5.2e-06/1.127, allocations: 0 / 0.6987 GB, free: 11.33 MB / 478.1 MB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.1620640779729] 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.184420328005217 1.1992284279999998 0.69298932 Calling exit ...