Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 115.7 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 190.6 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_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_0_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.001402/0.001402, allocations: 43.94 kB / 366.4 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.09288, allocations: 52.13 MB / 418.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2369/0.3298, allocations: 37.41 MB / 455.9 MB, free: 7.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01945/0.3492, allocations: 10.05 MB / 466 MB, free: 6.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00793/0.3572, allocations: 330 kB / 466.3 MB, free: 6.672 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01898/0.3761, allocations: 9.23 MB / 475.5 MB, free: 3.629 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01242/0.3886, allocations: 4.008 MB / 479.5 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006817/0.3954, allocations: 2.392 MB / 481.9 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02199/0.4174, allocations: 14.09 MB / 496 MB, free: 7.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03159/0.449, allocations: 19.32 MB / 0.5033 GB, free: 6.938 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01288/0.4618, allocations: 7.328 MB / 0.5104 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01526/0.4771, allocations: 7.98 MB / 0.5182 GB, free: 7.582 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005694/0.4828, allocations: 2.035 MB / 0.5202 GB, free: 5.547 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00912/0.4919, allocations: 2.429 MB / 0.5226 GB, free: 3.117 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007368/0.4993, allocations: 4.044 MB / 0.5265 GB, free: 15.06 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01546/0.5147, allocations: 7.813 MB / 0.5342 GB, free: 7.219 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03678/0.5515, allocations: 27.01 MB / 0.5605 GB, free: 12.12 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.5515, allocations: 0 / 0.5605 GB, free: 12.12 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5515, allocations: 0 / 0.5605 GB, free: 12.12 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008487/0.5524, allocations: 0 / 0.5605 GB, free: 12.12 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: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04886/0.6012, allocations: 16.13 MB / 0.5763 GB, free: 11.86 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.722e-05/0.6013, allocations: 15.89 kB / 0.5763 GB, free: 11.84 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004064/0.6017, allocations: 369.5 kB / 0.5766 GB, free: 11.48 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006036/0.6077, allocations: 1.931 MB / 0.5785 GB, free: 9.531 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03636/0.6441, allocations: 6.47 MB / 0.5849 GB, free: 3.047 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02023/0.6643, allocations: 8.603 MB / 0.5933 GB, free: 10.37 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009028/0.6652, allocations: 0.9071 MB / 0.5941 GB, free: 9.457 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004403/0.6696, allocations: 1.191 MB / 0.5953 GB, free: 8.266 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04341/0.7131, allocations: 18.78 MB / 0.6136 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003804/0.7134, allocations: 15.95 kB / 0.6137 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002904/0.7163, allocations: 0.4921 MB / 0.6141 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007128/0.717, allocations: 0.6576 MB / 0.6148 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03603/0.7531, allocations: 17.01 MB / 0.6314 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4541/1.207, allocations: 62.04 MB / 0.692 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02102/1.228, allocations: 29.24 MB / 0.7205 GB, free: 81.47 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005439/1.234, allocations: 3.664 MB / 0.7241 GB, free: 79.56 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01503/1.249, allocations: 10.25 MB / 0.7341 GB, free: 72.63 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/1.249, allocations: 72.69 kB / 0.7342 GB, free: 72.57 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=406): time 1.076e-05/1.249, allocations: 0 / 0.7342 GB, free: 72.57 MB / 0.5138 GB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.3802692469907925] 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.2972734529757872 1.305719292 0.751874703 Calling exit ...