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.001332/0.001332, allocations: 114.3 kB / 18.49 MB, free: 4.539 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.001426/0.001426, allocations: 219 kB / 21.46 MB, free: 1.586 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.422/1.422, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.001388/0.001388, allocations: 51.92 kB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09095/0.09234, allocations: 53.34 MB / 427.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.203/0.2953, allocations: 38.05 MB / 465.1 MB, free: 2.504 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02296/0.3183, allocations: 10.31 MB / 475.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0088/0.3271, allocations: 330 kB / 475.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02255/0.3496, allocations: 9.261 MB / 485 MB, free: 3.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01433/0.364, allocations: 4.016 MB / 489 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00836/0.3723, allocations: 2.437 MB / 491.5 MB, free: 14.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02016/0.3925, allocations: 14.24 MB / 0.4938 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03275/0.4252, allocations: 19.3 MB / 0.5127 GB, free: 14.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01241/0.4376, allocations: 7.344 MB / 0.5199 GB, free: 7.391 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01373/0.4514, allocations: 8.14 MB / 0.5278 GB, free: 15.22 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00568/0.457, allocations: 2.027 MB / 0.5298 GB, free: 13.19 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007692/0.4647, allocations: 2.452 MB / 0.5322 GB, free: 10.74 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006189/0.4709, allocations: 4.04 MB / 0.5361 GB, free: 6.691 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01349/0.4844, allocations: 7.825 MB / 0.5438 GB, free: 14.83 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03725/0.5217, allocations: 27.06 MB / 0.5702 GB, free: 3.691 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.5217, allocations: 4 kB / 0.5702 GB, free: 3.688 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5217, allocations: 0 / 0.5702 GB, free: 3.688 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0006576/0.5223, allocations: 0 / 0.5702 GB, free: 3.688 MB / 478.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.04909/0.5714, allocations: 16.18 MB / 0.586 GB, free: 3.367 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.333e-05/0.5715, allocations: 8.031 kB / 0.586 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0005153/0.572, allocations: 365.5 kB / 0.5864 GB, free: 2.996 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006791/0.5788, allocations: 1.923 MB / 0.5882 GB, free: 1.059 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03751/0.6163, allocations: 6.434 MB / 0.5945 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01935/0.6357, allocations: 8.655 MB / 0.603 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00121/0.6369, allocations: 0.907 MB / 0.6039 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005194/0.6421, allocations: 1.195 MB / 0.605 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3873/1.029, allocations: 18.81 MB / 0.6234 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003722/1.03, allocations: 20.78 kB / 0.6234 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002219/1.032, allocations: 0.4959 MB / 0.6239 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006585/1.033, allocations: 0.651 MB / 0.6245 GB, free: 139.4 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03207/1.065, allocations: 17.05 MB / 0.6412 GB, free: 133.5 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08087/1.146, allocations: 63.36 MB / 0.7031 GB, free: 87.7 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02046/1.166, allocations: 29.57 MB / 0.7319 GB, free: 54.65 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005432/1.171, allocations: 3.699 MB / 0.7356 GB, free: 50.95 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01445/1.186, allocations: 10.57 MB / 0.7459 GB, free: 40.5 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/1.186, allocations: 81.75 kB / 0.746 GB, free: 40.41 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=406): time 5.491e-06/1.186, allocations: 4 kB / 0.746 GB, free: 40.4 MB / 0.5138 GB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.3504221119801514] 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.2338043630006723 1.242148454 0.71830549 Calling exit ...