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.0012/0.0012, allocations: 112.2 kB / 21.22 MB, free: 0.7422 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.001306/0.001306, allocations: 205.2 kB / 24.52 MB, free: 4.137 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.311/1.311, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 179] 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: 48.06 kB / 378.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2016, allocations: 53.37 MB / 432 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04278/0.2444, allocations: 38.13 MB / 470.1 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02278/0.2672, allocations: 10.35 MB / 480.4 MB, free: 6.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00831/0.2755, allocations: 330.2 kB / 480.8 MB, free: 5.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02264/0.2981, allocations: 9.279 MB / 490 MB, free: 12.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01407/0.3122, allocations: 4.098 MB / 494.1 MB, free: 8.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007726/0.3199, allocations: 2.491 MB / 496.6 MB, free: 5.965 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02018/0.3401, allocations: 14.34 MB / 0.499 GB, free: 7.586 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03283/0.3729, allocations: 17.12 MB / 0.5157 GB, free: 6.301 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01371/0.3867, allocations: 7.383 MB / 0.5229 GB, free: 14.9 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01442/0.4011, allocations: 8.148 MB / 0.5309 GB, free: 6.723 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005519/0.4066, allocations: 2.027 MB / 0.5329 GB, free: 4.695 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007198/0.4138, allocations: 2.46 MB / 0.5353 GB, free: 2.234 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3996/0.8134, allocations: 4.045 MB / 0.5392 GB, free: 32.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01152/0.8249, allocations: 7.828 MB / 0.5469 GB, free: 32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02189/0.8468, allocations: 27.06 MB / 0.5733 GB, free: 24.63 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.8468, allocations: 0 / 0.5733 GB, free: 24.63 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.8468, allocations: 0.9375 kB / 0.5733 GB, free: 24.63 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005608/0.8474, allocations: 0 / 0.5733 GB, free: 24.63 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.03976/0.8871, allocations: 16.11 MB / 0.589 GB, free: 14.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.8872, allocations: 11.44 kB / 0.589 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002342/0.8874, allocations: 366.5 kB / 0.5894 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003635/0.891, allocations: 1.935 MB / 0.5913 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03116/0.9222, allocations: 6.433 MB / 0.5976 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01448/0.9367, allocations: 8.662 MB / 0.606 GB, free: 3.277 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004821/0.9371, allocations: 0.8991 MB / 0.6069 GB, free: 2.387 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003589/0.9407, allocations: 1.2 MB / 0.6081 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05395/0.9947, allocations: 18.81 MB / 0.6264 GB, free: 14.32 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003439/0.995, allocations: 23.89 kB / 0.6265 GB, free: 14.3 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00239/0.9974, allocations: 0.502 MB / 0.6269 GB, free: 13.81 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006829/0.9981, allocations: 0.6498 MB / 0.6276 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03525/1.033, allocations: 17.04 MB / 0.6442 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1137/1.147, allocations: 60.43 MB / 0.7032 GB, free: 15.49 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02296/1.17, allocations: 10.97 MB / 0.7139 GB, free: 5.625 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006726/1.177, allocations: 3.695 MB / 0.7176 GB, free: 1.934 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01949/1.196, allocations: 10.16 MB / 0.7275 GB, free: 7.898 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.858e-05/1.196, allocations: 81.09 kB / 0.7276 GB, free: 7.812 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=406): time 5.4e-06/1.196, allocations: 0 / 0.7276 GB, free: 7.812 MB / 0.5607 GB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.372046140022576] 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.2567122040200047 1.423848278 0.574535585 Calling exit ...