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.001282/0.001282, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001269/0.001269, allocations: 188.3 kB / 24.49 MB, free: 3.941 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.327/1.327, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 179] 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.001478/0.001478, allocations: 47.92 kB / 371.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2208, allocations: 52.18 MB / 423.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03791/0.2587, allocations: 31.96 MB / 455.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02014/0.2788, allocations: 9.685 MB / 465 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006146/0.285, allocations: 326.2 kB / 465.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.021/0.306, allocations: 8.579 MB / 473.9 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01288/0.3189, allocations: 4.036 MB / 478 MB, free: 7.602 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007052/0.3259, allocations: 2.367 MB / 480.3 MB, free: 5.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02074/0.3467, allocations: 14.21 MB / 494.5 MB, free: 6.992 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03497/0.3816, allocations: 17.12 MB / 0.4997 GB, free: 5.719 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01352/0.3952, allocations: 7.379 MB / 0.5069 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01299/0.4081, allocations: 8.004 MB / 0.5147 GB, free: 6.289 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005106/0.4133, allocations: 2.027 MB / 0.5167 GB, free: 4.262 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007653/0.4209, allocations: 2.418 MB / 0.519 GB, free: 1.844 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006659/0.4276, allocations: 4.048 MB / 0.523 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01157/0.4391, allocations: 6.097 MB / 0.5289 GB, free: 7.664 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4003/0.8394, allocations: 27.12 MB / 0.5554 GB, free: 45.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.8394, allocations: 0 / 0.5554 GB, free: 45.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.8394, allocations: 6.781 kB / 0.5554 GB, free: 45.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008082/0.8402, allocations: 0 / 0.5554 GB, free: 45.16 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.04464/0.8849, allocations: 16.06 MB / 0.5711 GB, free: 38.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.8849, allocations: 7.656 kB / 0.5711 GB, free: 38.07 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003312/0.8852, allocations: 366.6 kB / 0.5715 GB, free: 38.01 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007287/0.8925, allocations: 1.923 MB / 0.5734 GB, free: 37.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03364/0.9262, allocations: 6.479 MB / 0.5797 GB, free: 34.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01573/0.9419, allocations: 8.615 MB / 0.5881 GB, free: 29.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006671/0.9426, allocations: 0.9042 MB / 0.589 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00427/0.9468, allocations: 1.196 MB / 0.5901 GB, free: 28.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03899/0.9858, allocations: 19.03 MB / 0.6087 GB, free: 9.781 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000447/0.9863, allocations: 23.47 kB / 0.6087 GB, free: 9.762 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003784/0.9901, allocations: 0.4971 MB / 0.6092 GB, free: 9.277 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005537/0.9906, allocations: 0.6537 MB / 0.6099 GB, free: 8.621 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03246/1.023, allocations: 17 MB / 0.6265 GB, free: 7.609 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1056/1.129, allocations: 55.3 MB / 0.6805 GB, free: 156 kB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02078/1.149, allocations: 10.75 MB / 0.691 GB, free: 6.496 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006436/1.156, allocations: 3.646 MB / 0.6945 GB, free: 2.848 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0193/1.175, allocations: 9.076 MB / 0.7034 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.053e-05/1.175, allocations: 77.81 kB / 0.7035 GB, free: 9.809 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=406): time 7.554e-06/1.175, allocations: 0 / 0.7035 GB, free: 9.809 MB / 0.5294 GB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.2436338090337813] 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.234910279046744 1.249292289 0.40662702100000003 Calling exit ...