Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001706/0.001706, allocations: 116.9 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001734/0.001734, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_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_trunk_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.001811/0.001811, allocations: 64.14 kB / 373.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09811/0.09993, allocations: 53.38 MB / 427.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2391/0.339, allocations: 38.06 MB / 465.2 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02613/0.3651, allocations: 10.31 MB / 475.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00977/0.3749, allocations: 330.4 kB / 475.8 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02328/0.3982, allocations: 9.243 MB / 485 MB, free: 3.809 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01555/0.4137, allocations: 4.013 MB / 489.1 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009775/0.4235, allocations: 2.431 MB / 491.5 MB, free: 14.58 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02686/0.4504, allocations: 14.24 MB / 0.4939 GB, free: 2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03889/0.4893, allocations: 19.3 MB / 0.5127 GB, free: 14.53 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01408/0.5033, allocations: 7.332 MB / 0.5199 GB, free: 7.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01438/0.5177, allocations: 8.14 MB / 0.5278 GB, free: 15.01 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005762/0.5235, allocations: 2.027 MB / 0.5298 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008495/0.532, allocations: 2.445 MB / 0.5322 GB, free: 10.54 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006734/0.5387, allocations: 4.044 MB / 0.5361 GB, free: 6.484 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01462/0.5533, allocations: 7.821 MB / 0.5438 GB, free: 14.63 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03649/0.5898, allocations: 27.07 MB / 0.5702 GB, free: 3.48 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.5898, allocations: 0 / 0.5702 GB, free: 3.48 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5898, allocations: 0 / 0.5702 GB, free: 3.48 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.000709/0.5906, allocations: 0 / 0.5702 GB, free: 3.48 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.04713/0.6377, allocations: 16.18 MB / 0.586 GB, free: 3.164 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.6377, allocations: 11.97 kB / 0.586 GB, free: 3.152 MB / 494.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003837/0.6381, allocations: 365.5 kB / 0.5864 GB, free: 2.789 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006084/0.6442, allocations: 1.923 MB / 0.5882 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03658/0.6808, allocations: 6.434 MB / 0.5945 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01821/0.699, allocations: 8.655 MB / 0.603 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009935/0.7, allocations: 0.9032 MB / 0.6039 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004613/0.7046, allocations: 1.191 MB / 0.605 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4481/1.153, allocations: 18.81 MB / 0.6234 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004939/1.153, allocations: 21.89 kB / 0.6234 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003113/1.156, allocations: 0.494 MB / 0.6239 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007049/1.157, allocations: 0.6593 MB / 0.6245 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03459/1.192, allocations: 17.05 MB / 0.6412 GB, free: 133.5 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08493/1.277, allocations: 63.36 MB / 0.7031 GB, free: 87.47 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02021/1.297, allocations: 29.58 MB / 0.732 GB, free: 54.39 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005431/1.302, allocations: 3.695 MB / 0.7356 GB, free: 50.68 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01587/1.318, allocations: 10.57 MB / 0.7459 GB, free: 40.23 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/1.318, allocations: 77.81 kB / 0.746 GB, free: 40.14 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=406): time 5.36e-06/1.318, allocations: 0 / 0.746 GB, free: 40.14 MB / 0.5138 GB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.6451517050154507] 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.3687513429904357 1.377246699 0.78516827 Calling exit ...