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.001488/0.001488, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001556/0.001556, allocations: 192.8 kB / 24.5 MB, free: 4.02 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.328/1.328, allocations: 225.7 MB / 253.3 MB, free: 13.04 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.001441/0.001441, allocations: 43.94 kB / 371.3 MB, free: 9.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2244, allocations: 52.18 MB / 423.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04103/0.2655, allocations: 37.49 MB / 460.9 MB, free: 8.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02235/0.2878, allocations: 10.05 MB / 471 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008836/0.2966, allocations: 326.3 kB / 471.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0235/0.3201, allocations: 9.265 MB / 480.6 MB, free: 5.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01532/0.3355, allocations: 4.098 MB / 484.7 MB, free: 1.125 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008319/0.3438, allocations: 2.445 MB / 487.1 MB, free: 14.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02177/0.3656, allocations: 14.2 MB / 0.4896 GB, free: 444 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03692/0.4025, allocations: 17.13 MB / 0.5063 GB, free: 15.15 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01327/0.4158, allocations: 7.379 MB / 0.5135 GB, free: 7.754 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0144/0.4301, allocations: 7.996 MB / 0.5213 GB, free: 15.73 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005895/0.436, allocations: 2.031 MB / 0.5233 GB, free: 13.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008147/0.4442, allocations: 2.433 MB / 0.5257 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006407/0.4506, allocations: 4.044 MB / 0.5296 GB, free: 7.211 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2659/0.7165, allocations: 7.808 MB / 0.5373 GB, free: 47.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03278/0.7492, allocations: 27.01 MB / 0.5636 GB, free: 42.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.7493, allocations: 0 / 0.5636 GB, free: 42.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.7493, allocations: 1.969 kB / 0.5636 GB, free: 42.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008807/0.7501, allocations: 6.812 kB / 0.5636 GB, free: 42.18 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.05126/0.8014, allocations: 16.05 MB / 0.5793 GB, free: 33.31 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.8014, allocations: 11.25 kB / 0.5793 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000333/0.8018, allocations: 367.6 kB / 0.5797 GB, free: 33.24 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00756/0.8093, allocations: 1.929 MB / 0.5816 GB, free: 32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03485/0.8442, allocations: 6.478 MB / 0.5879 GB, free: 29.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01742/0.8616, allocations: 8.619 MB / 0.5963 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000599/0.8622, allocations: 0.904 MB / 0.5972 GB, free: 21.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004929/0.8671, allocations: 1.193 MB / 0.5984 GB, free: 19.87 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03966/0.9068, allocations: 18.77 MB / 0.6167 GB, free: 1.035 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003563/0.9072, allocations: 23.89 kB / 0.6167 GB, free: 1.012 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003278/0.9104, allocations: 0.4947 MB / 0.6172 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005643/0.911, allocations: 0.6537 MB / 0.6178 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03885/0.9499, allocations: 17.01 MB / 0.6344 GB, free: 14.86 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1285/1.078, allocations: 60.31 MB / 0.6933 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02389/1.102, allocations: 10.87 MB / 0.7039 GB, free: 8.586 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00765/1.11, allocations: 3.663 MB / 0.7075 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02478/1.135, allocations: 10.05 MB / 0.7173 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.545e-05/1.135, allocations: 85.47 kB / 0.7174 GB, free: 10.89 MB / 0.545 GB Notification: Performance of pre-optimization done (n=406): time 7.153e-06/1.135, allocations: 3.938 kB / 0.7174 GB, free: 10.89 MB / 0.545 GB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.3901300709694624] 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.2042794130393304 1.391209189 0.639103603 Calling exit ...