Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.004783/0.004783, allocations: 100.1 kB / 21.96 MB, free: 5.203 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.001333/0.001333, allocations: 217.5 kB / 25.26 MB, free: 3.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.31/1.31, allocations: 207.7 MB / 236.1 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 59.92 kB / 348 MB, free: 9.855 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2413, allocations: 49.15 MB / 397.2 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.034/0.2753, allocations: 32.02 MB / 429.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0224/0.2977, allocations: 9.693 MB / 438.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008925/0.3066, allocations: 286.4 kB / 439.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02178/0.3284, allocations: 8.58 MB / 447.7 MB, free: 424 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01489/0.3432, allocations: 4.06 MB / 451.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007926/0.3512, allocations: 2.418 MB / 454.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0224/0.3736, allocations: 14.35 MB / 468.6 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03314/0.4067, allocations: 17.12 MB / 485.7 MB, free: 10.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01208/0.4188, allocations: 7.453 MB / 493.1 MB, free: 2.758 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01342/0.4322, allocations: 8.109 MB / 0.4895 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005416/0.4376, allocations: 2.035 MB / 0.4915 GB, free: 8.586 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007246/0.4449, allocations: 2.429 MB / 0.4939 GB, free: 6.156 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006124/0.451, allocations: 4.111 MB / 0.4979 GB, free: 2.035 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01298/0.464, allocations: 6.156 MB / 0.5039 GB, free: 11.85 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03536/0.4993, allocations: 27.18 MB / 0.5304 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.4993, allocations: 0 / 0.5304 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4993, allocations: 4 kB / 0.5304 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007004/0.5, allocations: 4 kB / 0.5304 GB, free: 0.582 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.0494/0.5494, allocations: 16.24 MB / 0.5463 GB, free: 228 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.5495, allocations: 15.98 kB / 0.5463 GB, free: 212 kB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004944/0.55, allocations: 374.5 kB / 0.5467 GB, free: 15.83 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00725/0.5572, allocations: 1.956 MB / 0.5486 GB, free: 13.87 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04195/0.5992, allocations: 7.463 MB / 0.5559 GB, free: 6.387 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3308/0.93, allocations: 7.803 MB / 0.5635 GB, free: 125.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008403/0.9308, allocations: 0.9159 MB / 0.5644 GB, free: 125.4 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004379/0.9352, allocations: 1.21 MB / 0.5656 GB, free: 125.4 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0447/0.9799, allocations: 19.49 MB / 0.5846 GB, free: 117.5 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005346/0.9804, allocations: 22.55 kB / 0.5846 GB, free: 117.5 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003499/0.9839, allocations: 0.5018 MB / 0.5851 GB, free: 117.1 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009705/0.9849, allocations: 0.6895 MB / 0.5858 GB, free: 117 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03111/1.016, allocations: 17.68 MB / 0.6031 GB, free: 105.6 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09077/1.107, allocations: 56.31 MB / 0.658 GB, free: 49.32 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02068/1.127, allocations: 12.45 MB / 0.6702 GB, free: 38.44 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00549/1.133, allocations: 3.801 MB / 0.6739 GB, free: 34.64 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01975/1.153, allocations: 10.96 MB / 0.6846 GB, free: 23.92 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.722e-05/1.153, allocations: 81.8 kB / 0.6847 GB, free: 23.83 MB / 478.1 MB Notification: Performance of pre-optimization done (n=406): time 7.854e-06/1.153, allocations: 0 / 0.6847 GB, free: 23.83 MB / 478.1 MB Error: Internal error - IndexReduction.dynamicStateSelectionWork failed! " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.21502218907699] 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.2089251460274681 1.223255159 0.720577841 Calling exit ...